Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr2725 :: The Illumos Shutdown Command Explained

A short pod cast about the Illumos shutdown command

<< First, < Previous, Latest >>

Hosted by klaatu on 2019-01-11 is flagged as Clean and is released under a CC-BY-SA license.
Tags: sys admin,systems,unix,illumos.
Listen in ogg, spx, or mp3 format. | Comments (1)

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:

  • shutdown
  • -i sets the destination init state (5 to shutdown, 6 to reboot, and so on; see man init for more)
  • -y to answer "yes" to the safeguard prompt asking you whether you really want to shutdown
  • -g to 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.

Some links:

OpenIndiana handbook

Sun Microsystem docs (with Oracle branding on it)


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2019-01-11T19:21:40Z by ClaudioM

Quite a Different Shutdown

A very informative episode. I hadn't realized how different the shutdown command functions on illumos-based operating systems is from the BSDs and Linux. You've also inspired me to make an HPR episode on a similar command with the same name in another OS I have to use from time to time.

<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?