s6-linux-init
Software
skarnet.org
The s6-linux-init-shutdown program
s6-linux-init-shutdown triggers the system shutdown procedure.
It is normally invoked as /sbin/shutdown.
Interface
s6-linux-init-shutdown [ -h | -p | -r | -k ] [ -a ] [ -t sec ] [ -f | -F ] time [ message ]
s6-linux-init-shutdown -c [ message ]
- If the -c option is present, a pending shutdown is cancelled.
- Else, it triggers the shutdown procedure.
- It exits 0. The shutdown procedure happens asynchronously.
The s6-linux-init-shutdown program conforms to the LSB-3.0.0
shutdown
interface.
Exit codes
- 0: shutdown procedure triggered.
- 100: wrong usage, or user does not have root privileges.
- 111: system call failed.
Notes
- The s6-linux-init-shutdown
binary is not meant to be called directly by administrators. Instead, after a
s6-linux-init-maker invocation,
the bin/ subdirectory of the target will contain a shutdown
symlink to s6-linux-init-shutdown. The bin/ subdirectory
should be copied by the administrator into /sbin for full
interface compatibility with sysvinit.