ServiceControllerHelpers
Contains tasks which allow to control NT services.
Functions and values
Function or value | Description |
checkRemoteServiceExists host name
Signature: host:string -> name:string -> bool
|
Returns whether a remote service with the given name exists. Parameters
|
checkServiceExists(name)
Signature: name:string -> bool
|
Returns whether a local service with the given name exists. Parameters
|
ensureRemoteServiceHasStarted(...)
Signature: host:string -> name:string -> timeout:TimeSpan -> unit
|
Waits until the remote service with the given name has been started or fails after given timeout Parameters
|
ensureRemoteServiceHasStopped(...)
Signature: host:string -> name:string -> timeout:TimeSpan -> unit
|
Waits until the remote service with the given name has been stopped or fails after given timeout Parameters
|
ensureServiceHasStarted name timeout
Signature: name:string -> timeout:TimeSpan -> unit
|
Waits until the local service with the given name has been started or fails after given timeout Parameters
|
ensureServiceHasStopped name timeout
Signature: name:string -> timeout:TimeSpan -> unit
|
Waits until the local service with the given name has been stopped or fails after given timeout Parameters
|
getRemoteService host name
Signature: host:string -> name:string -> ServiceController option
|
Returns the first remote service with given name or None. Parameters
|
getRemoteServices host name
Signature: host:string -> name:string -> seq<ServiceController>
|
Returns sequence of remote services with given name. Parameters
|
getRemoteServiceStatus host name
Signature: host:string -> name:string -> ServiceControllerStatus
|
Returns status of the remote service with given name or fails when service is not found. Parameters
|
getService(name)
Signature: name:string -> ServiceController option
|
Returns the first local service with given name or None. Parameters
|
getServices(name)
Signature: name:string -> seq<ServiceController>
|
Returns sequence of local services with given name. Parameters
|
getServiceStatus(name)
Signature: name:string -> ServiceControllerStatus
|
Returns status of the local service with given name or fails when service is not found. Parameters
|
isService name service
Signature: name:string -> service:ServiceController -> bool
|
Returns whether the given service has the given name as display or service name. Parameters
|
startRemoteService host name
Signature: host:string -> name:string -> unit
|
Starts all remote services with given name. Parameters
|
startService(name)
Signature: name:string -> unit
|
Starts all local services with given name. Parameters
|
stopRemoteService host name
Signature: host:string -> name:string -> unit
|
Stops all services with given name. Parameters
|
stopService(name)
Signature: name:string -> unit
|
Stops all local services with given name. Parameters
|