pc:ServiceState

Previous Next

Outputs the state of a Windows service on the local computer.

Syntax

<pc:ServiceState servicename="servicename" />

 

Example

<pc:ServiceState servicename="RulesService-7779"/>

Output values

Output values are as follows:

Running

The Windows Service is running.

The Services panel shows Status = Running.

Stopped

The Windows Service is not running.

The Services panel shows Status = (none).

 

See Also

pc:ServiceStart

pc:ServiceStop

service:ServiceState