Daemon/Spawner Protocol Reference
System Shutdown
The system shutdown can be initiated from the daemon by:
- A user’s sending
SIGTERMto the daemon. - The manager subprocess terminating.
- The spawner subprocess terminating.
In any of the above cases:
- The daemon sends a
Messagewith codeMessage::Code::Shutdownto the manager, if it is not dead. - The manager performs the shutdown actions and terminates.
- The daemon detects that the manager terminated.
- The daemon sends a
Messagewith codeMessage::Code::Shutdownto the spawner, if it is not dead. - The spawner performs the shutdown actions and terminates.
- The daemon terminates.