system-shutdown-daemon contains the Kernel independent part of the shutdown sequence. It is invoked by the Kernel specifict goetia-shutdown service, e.g. goetia-shutdown service for Linux or goetia-shutdown service for FreeBSD. system-shutdown-daemon is a long lived program that waits for instruction by the system-shutdown command The latter is part of the Kernel specific packages, e.g. goetia-linux or goetia-freebsd.
system-shutdown-daemon
./stage3b,
which is by default not executable.
If it can not execute ./stage3b,
and only in this case,
it continues with the following.
src subdirectory of the
system configuration directory.
stage3b, expected to exist in the current working directory
is made executable.
This file is part of the Kernel secific service directories.
(see e.g. goetia-shutdown)
log/uncaught-logs
subdirectory of the
system runtime directory.
to the
uncaught-logs
subdirectory of the
system log directory.
./stage3b is executable
and executed instead of what is described above.
What happens in ./stage3b is Kernel specific,
and documented on
goetia-shutdown service for Linux,
goetia-shutdown service for FreeBSD,
etc.