On 2010-11-23T13:52:17+0530, Kaushal Shriyan <[email protected]> wrote: > Which is the preferred method of shutdown of a Linux Server and any > specific reason to go with the specific method. > Please suggest/guide > > Shutdown: > > * init 0 > * shutdown -h now > o -a: Use file /etc/shutdown.allow > o -c: Cancel scheduled shutdown. > * halt -p > o -p: Turn power off after shutdown. > * poweroff
I think 'shutdown' is the most correct and portable way to do it (for
example, on FreeBSD, 'shutdown' runs all the proper service stop
scripts, whereas 'reboot' doesn't). In particular, to power off, use
the following:
shutdown -h -P now
To halt:
shutdown -h -H now
And to reboot:
shutdown -r now
I have seen a machine act differently when given "shutdown -h now"
versus the full (as documented in the manual page) "shutdown -h -P
now".
--
Kenyon Ralph
signature.asc
Description: Digital signature
-- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
