"Service" Action

 

Description

Windows services can be manipulated through the service action.

Parameters

The following is a list of the supported parameters:
ServiceREQ

Value

String

Description

The name of the service you want to control. Note that you also have to list all the services you refer to in the [Services] section.

Example

Service: mysql
ServiceActionREQ

Value

startresume|pause|stop|restart

Description

To resume a service after it has been paused, use startresume (not a second pause).

Example

ServiceAction: startresume
Flags

Value

Flag list

Description

This parameter is a set of extra options. Multiple options may be used by separating them by spaces. The following options are supported:
ignoreerrors
AeTrayMenu automatically disables a menu item when the specified action can't be performed on a service. However, when you're using batch action sections, this won't work. In that case, it's often handy to use the ignoreerrors flag to prevent the batch from getting stuck when a service is not available.
waituntilterminated
If you're executing multiple actions sequentially (in a batch action section), you can use this flag to suspend execution of the next action until the service has been started, paused, etc.

Example

Flags: ignoreerrors waituntilterminated

Example

Action: service; Service: mysql; ServiceAction: restart

See also See Also
List of Available Actions
How to Use the Service Features
[Services] Section