service

abstract fun service(name: String, action: Action<Service> = Action<Service> {})

registers a new service

Parameters

name

: the name of the service, this is an arbitrary name only used to create the tasks. The only constraints are that the different names must be unique

action

: the configure action for the Service