3.3 Invoking reboot

The reboot command is a convenience client program to instruct the Shepherd (when used as an init system) to stop all running services and reboot the system. It has the following synopsis:

reboot [option...]

It is equivalent to running herd stop shepherd. The reboot command understands the following option:

-s file
--socket=file

Send commands to the socket special file file. If this option is not specified, localstatedir/run/shepherd/socket is taken.

-k
--kexec

Reboot the system using Linux’s kexec (this is equivalent to running herd kexec root). The kernel that was previously loaded using the kexec -l file command is executed directly instead of rebooting into the BIOS, keeping the downtime to a minimum. See the kexec command documentation for more information.

This feature is only available on Linux-based systems. It has no effect on systems where kexec is unsupported or when no system was loaded for eventual kexec reboot. Last, if kexec reboot fails at run time, shepherd falls back to normal reboot.