/sbin/reboot

Adam Vande More amvandemore at gmail.com
Fri Dec 10 06:46:59 UTC 2010


On Fri, Dec 10, 2010 at 12:03 AM, Kevin Oberman <oberman at es.net> wrote:

> Unlike reboot, shutdown attempts to cleanly stop all processes. Things
> like databases can be badly damaged by a reboot. Other processes save
> state when stopped and that is lost with a reboot.
>

For the correct order, "shutdown -r" calls reboot which calls init which
calls rc.shutdown.

Doing a shutdown -r is the same as a reboot without the warning to logged in
users and shutdown handles the logging instead of reboot.

> Also, halt/reboot have options like -n and -q which can disrupt things
worse than an unintended clean reboot.

shutdown also give operator more possibilities than a clean shutdown some
which could be very bad.

-- 
Adam Vande More


More information about the freebsd-stable mailing list