SHUTDOWN(8) | GNU/Linux System Adminstrator's manual | SHUTDOWN(8) |
shutdown, reboot, poweroff - poweroff or reboot the system
/sbin/shutdown [-h] [-r] [-f] [-F] [now]
/sbin/reboot [-w] [-f] [-n]
/sbin/halt [-w] [-f] [-n]
/sbin/poweroff [-w] [-f] [-n]
Shutdown is a program to poweroff or reboot the system that
maintains some compatibility with original SysV-init halt, poweroff, reboot
and shutdown programs. These programs are expected by some initscripts,
graphical desktop environments and tools like acpi.
When called as shutdown, halt or poweroff without options, runit(8) is
told to shutdown the system and poweroff.
When called as reboot runit(8) is told to reboot the system.
When runit(8) is not the current init system this program sends data in
the appropriate format to perform the requested action to the initctl pipe,
if it exists.
The original Sysv shutdown implementation allowed for an optional time parameter for a delayed shutdown and another one for a shutdown message. The runit shutdown program does not support any extra argument after the options, except for 'now'.
Any other option given is ignored except that a warning is printed.
This program maintains a compatibility layer with SysV-init's
initctl pipe according to the spec described in SysV-init's initctl(5). This
allow one to reboot the system when switching from another init to
runit-init.
Currently only switching from systemd and SysV-init is tested but any other
init system that maintains an initctl pipe compatible with SysV's one should
work.
Combining flags, like halt -wf is not supported, all merged short options will be ignored.
August 30, 2022 |