The table below shows the relationship between a service's lifecycle and its FireDaemon Pro event programs. The table columns cover the major events in the lifecycle of a service. The table rows indicate, for each event program disposition, when the event program is run. 


SCM = Windows Service Control Manager


Event Manager
SCM
FireDaemon Pro
Service Lifecycle Event

Service

start

Service end
Service program start-up
Service program end

Service Lifecycle Event


SCM

start

SCM

stop

SCM

recovery

Before service program

start

(creation)

After service program

start

(successful

creation)

After service program

start (failed

creation)

Before service program

termination

(excluding

self-termination)

After service program

completion

(success or failure)

After service program

crash

After service program freeze
Launch Events

Before Program 

Launch




Yes (*)







After Program 

Launch





Yes (*)






Send Command





Yes





Termination Events

Before Program 

Termination







Yes



Send Command







Yes



Send Close







Yes



After Program

Termination






Yes

Yes (*)
Yes (*)Yes (*)

After Program Completion








Yes (*)


After Program Crash






Yes


Yes (*)Yes (*)


(*) Note: The event program is NOT run if the service's lifecycle setting Upon Program Exit is set to Restart Program