Scroll to navigation

SHUTDOWN(8) GNU/Linux System Adminstrator's manual SHUTDOWN(8)

NAME

shutdown, reboot, poweroff - poweroff or reboot the system

SYNOPSIS

/sbin/shutdown [-w] [-f] [-r]
/sbin/reboot [-w] [-f] [-r]
/sbin/halt [-w] [-f] [-r]
/sbin/poweroff [-w] [-f] [-r]

DESCRIPTION

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.

OPTIONS

Force unsafe reboot or poweroff immediately without signaling the init system. This will likely result in an unclean shutdown an can cause data loss or corruption.

No-Op, maintained for compatibility with initscripts. See #919699

Reboot the system regardless of how the command is called.

SWITCHING FORM OTHER INIT SYSTEMS

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.

BUGS

Non existent or unsupported options are silently ignored.
Combining flags, like halt -wf is not supported, all merged short options will be ignored.
The -r flag will always reboot the system, even if called as poweroff or halt; this is counterintuitive.
The -f flag is used as in halt -f but it should have a different effect when the program is called as shutdown.

SEE ALSO

init(8)

July 16, 2021