PLB_SERVICE_FAIL Keyword
PLB_SERVICE_FAIL{x}={action}
This optional keyword defines the runtime's failure action when running as a NT service. The value of {x} may be one of the following values:
|
Value |
Meaning |
|
1 |
First failure |
|
2 |
Second failure |
|
3 |
Subsequent failures |
The {action} value is specified as a decimal number and may be one of the following values:
|
Value |
Meaning |
|
0 |
Take no action (default) |
|
1 |
Restart the service |
|
2 |
Reboot the computer |
Note the following:
If the service controller handles the SC_ACTION_REBOOT action, the caller must have the SE_SHUTDOWN_NAME privilege. For more information, see Running with Special Privileges in the Microsoft documentation.
See Also: PLBWIN Keywords
![]() |