s6-linux-init
Software
skarnet.org
The s6-linux-init-shutdown program
s6-linux-init-shutdown triggers the system shutdown procedure.
Interface
s6-linux-init-shutdown [ -h | -p | -r | -k ] [ -a ] [ -t sec ] [ -f | -F ] [ -R tmpfsdir ] time [ message ]
s6-linux-init-shutdown -c [ -R tmpfsdir ] [ 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.
Supplementary options
These options are supported by s6-linux-init-shutdown but are not
part of the LSB-3.0.0 shutdown specification.
- -R tmpfsdir : assume that the root-only
boot-time tmpfs has been mounted on tmpfsdir. Default is /run.
The shutdown script created by a
s6-linux-init-maker invocation
automatically execs into s6-linux-init-shutdown with the correct
-R option.
Notes