66
www.obarun.org
66-shutdownd
66-shutdownd is the daemon that manages the shutdown
procedure for a 66-boot installation. It is not meant to be called
directly by the user. This program is a modified copy of s6-linux-init-shudownd program.
Interface
66-shutdownd [ -h ] [ -l live ] [ -s skel ] [ -g gracetime ]
-
66-shutdownd opens the live/scandir/0/shutdownd/fifo pipe
and listens to it. This is where programs such as
66-shutdown send their
commands 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 define by default at /etc/66 directory, reads the value of RCSHUTDOWN variable to be able to spawns the rc.shutdown script.
-
When this 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 the file systems and halts, powers off or reboots the
machine.
Options
-
-h : prints this help.
-
-l live : live directory to use. 66-shutdown will send signal the pipe of the 66-shutdownd service at live/scandir/0/shutdownd/fifo. Default is
/run/66. The default can also be changed at compile-time by
passing the --livedir=live option to ./configure.
An absolute path is expected and should be under a writable filesystem
- likely a RAM filesystem.
-
-s skel : skeleton directory to find the rc.init script. Default is /etc/66.
-
-g gracetime : if the shutdown command
does not specify a grace time between the SIGTERM and the SIGKILL, use
gracetime milliseconds. Default is 3000.
Notes
-
The 66-shutdownd
binary is not meant to be called directly by administrators. It is automatically generated by a 66-scandir program invocation.