hpr2725 :: The Illumos Shutdown Command Explained
A short pod cast about the Illumos shutdown command
Hosted by Klaatu on 2019-01-11 is flagged as Clean and is released under a CC-BY-SA license.
sys admin,systems,unix,illumos. 1.
Listen in ogg,
or mp3 format. Play now:
In response to JWP's episode 2697 and ClaudioM's comment, this show covers the
shutdown command as it appeared in Sun Solaris and OpenSolaris, and currently appears in both Oracle Solaris and OpenIndiana.
The quick version:
-isets the destination init state (5 to shutdown, 6 to reboot, and so on; see
man initfor more)
-yto answer "yes" to the safeguard prompt asking you whether you really want to shutdown
-gto set how many seconds until shutdown. Default is 60.
In practise, I don't even use the shutdown command. I use
poweroff, which does a shutdown and poweroff.
Both shutdown and poweroff require root permission. On OpenIndiana, you can either use
sudo bash or
pfexec bash to get a root prompt.
Sun Microsystem docs (with Oracle branding on it)