Hi all; help me settle a dispute:
I've always used /usr/sbin/shutdown -g0 -i6 -y to reboot Solaris
servers to 'gracefully' shutdown all running processes, sync the file
systems, and effect a reboot. I got into the habit as advised by an
admin when I first started. Review of the man page supported that
advice (in addition to the other options, run levels, etc.). However, a
colleague recently made the point that in the case where I don't need
to give any grace period to the users but wish to reboot the server, I
could simply issue the reboot command.
I checked the man page, and although it does not SAY that it effects a
graceful shutdown first (ie; runs through all the init stages and shuts
down running processes), it DOES state that the -q option can be passed
to "Reboot quickly and ungracefully, without shutting down running
processes first." So this would lead me to think that it does indeed
effect a graceful shutdown.
Can anyone confirm one way or the other, and offer advice as to which
would be the better choice of the two? Out of habit, I would tend to
stick with the shutdown command, but was wondering if I had been
laboring under a false idea....
Thanks, as always...