|
|
|
|
|
- EndService and EndProgram functions
EndService (Function) In french: FinService Ends the execution of the current service. Note This function only has an effect in the "Execute service (called in loop)" event
ExécutionService()
ServiceWait(6000)
CASE EXCEPTION:
ServiceWriteEventLog(ExceptionInfo, elError)
EndService(esFailure)
Syntax
EndService([<Ending option>])
<Ending option>: Optional Integer constant The options for ending a service are:
| | esFailure | The different ending codes are not run and the service stops while triggering a failure.
| esStop (default value) | The different ending codes are run and the service stops. |
Remarks EndService and EndProgram functions In a service: - the function EndService is used to terminate service execution by performing the following operations:
- configuring the execution of the closing codes
- simulating a service failure, which triggers OS failure recovery actions (automatic restart, or reboot in Windows, for example).
- EndProgram can be used with the following specific features:
- the message is ignored.
- closing codes are run (or not) depending on the boolean specified as the last parameter.
- the service ends normally and no failure is simulated.
In an application, EndService can be used with the following specific features: - no message is displayed when exiting the application.
- closing codes are run (or not) depending on the specified closing option.
- the failure option has no effect.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|