Closed danfe closed 5 months ago
Would it be OK to use "poweroff" and "reboot" instead?
Would it be OK to use "poweroff"
Yes, it would: per the manpage, calling poweroff
is equivalent to shutdown -p now
. However,
and "reboot" instead?
This one is different: reboot
merely flushes the file system cache to disk, sends all running processes a SIGTERM (and subsequently a SIGKILL) signal, and restarts the system; it short-circuits the normal shutdown process by not going through all of the RC and other bookkeeping of stopping processes and logging actions properly before killing the OS. You may want to check out this forum thread. Thus, for consistency's sake, I've opted for shutdown(8) in both cases.
Consider the following patch I've been running with for a while, works just fine:
Hibernate (suspend to disk, S4) is not supported on FreeBSD.