66
www.obarun.org
66-shutdownd
The daemon that manages the shutdown procedure for a 66-boot installation. It is not meant to be called
directly. This program is a modified copy of s6-linux-init-shudownd.
Interface
66-shutdownd [ -h ] [ -l live ] [ -s skel ] [ -g gracetime ]
-
66-shutdownd opens the live/scandir/0/shutdownd/fifo pipe and listens to it. Programs such as 66-shutdown send their commands to this pipe when they are told to trigger the shutdown procedure.
-
When it receives a command to shut down 66-shutdownd parses the skel file rc.init—defined by default at %%skel%% directory— and reads the value of RCSHUTDOWN to be able to spawn the rc.shutdown script.
-
When said script exits 66-shutdownd kills all
processes first with a SIGTERM then, after the grace time specified by the shutdown command, with a SIGKILL.
-
It then runs an automatically generated script called stage4 which unmounts all file systems and halts, powers off or reboots the machine.
Options
-
-h : print this help.
-
-l live : an absolute path; directory to use. By default 66-shutdownd will listen to signals from 66‑shutdown at live/scandir/0/shutdown/fifo where live defaults to %%livedir%%. Can also be changed at compile time by passing the ‑‑livedir=live option to ./configure. Should be available within a writable filesystem - likely a RAM filesystem.
-
-s skel : an absolute path; directory of the skeleton file rc.init. Default is %%skel%%.
-
-g gracetime : specify a grace time between the SIGTERM and the SIGKILL in milliseconds if the shutdown command
does not provide one. Defaults to 3000.
Note
-
The 66-shutdownd binary is not meant to be called directly. It is automatically generated by a 66‑scandir program invocation.