如同windows的服务-->属性-->恢复功能
调用sc
https://technet.microsoft.com/en-us/library/cc742019(v=ws.10).aspx
actions= {"" | {[run/] | [restart/] | [reboot/]}[/...]
Specifies one or more failure actions and their delay times (in milliseconds), separated by a forward slash (/). Valid actions are run, restart, and reboot. If more than one action is specified, each action must be separated by a forward slash. Use actions= "" to take no action a service fails. Note that this parameter requires the reset= parameter.
actions= {"" | {[run/<MS>] | [restart/<MS>] | [reboot/<MS>]}[/...]
Specifies one or more failure actions and their delay times (in milliseconds), separated by a forward slash (/). Valid actions are run, restart, and reboot. If more than one action is specified, each action must be separated by a forward slash. Use actions= "" to take no action a service fails. Note that this parameter requires the reset= parameter.