Service Lifecycle and Time Parameters


The following diagrams illustrate some examples of typical service life cycles, and the relevant FireDaemon Pro time interval parameters that come into play. A common event key and numbering scheme has been applied to all the diagrams, as follows:



Example 1: The simplest service life cycle, showing an intentional start-up and shutdown.


Example 2: A typical service life cycle, showing intentional start-up and shutdown phases. The pre-service program is configured to run before the service (default). The post-service program is configured to run after the service has been shut down (default).

Example 3: A service life cycle, showing intentional start-up and shutdown phases, where the pre-service program is configured to run after the service is launched, and the post-service program is configured to run before the service program is shut down.

Example 4: A service life cycle in which the service program dies abnormally and is restarted by FireDaemon Pro. FireDaemon Pro will run the pre-service program, but not the post-service program, during the restart cycle.

Upon service shutdown, the following occurs if the program is running:

Pre-Post program is run
Program is terminated
Post-Post program is run

Upon service shutdown, the following occurs if the program is NOT running:

Pre-Post program is NOT run
Program termination check is ignored
Post-Post program is run.

If the program restart option is set to disabled then NONE of the above steps are taken as the sub process monitoring thread is not started.