pc:ServiceStop

Previous Next

Stops a Windows service on the local computer.

Syntax

<pc:ServiceStop servicename="servicename" />

NOTE: This directive is also allowed to appear, without the servicename attribute, as a child element of pc:ConfigRulesService.

 

Example

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

Notes

If the Windows service was already stopped, <pc:ServiceStop> exits without raising an error.

 

See also

pc:ServiceStart

pc:ServiceState