Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


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.
sys admin, systems, unix, illumos. 1.
The show is available on the Internet Archive at: https://archive.org/details/hpr2725

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:13:32

general.

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-11 19:21:40 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.

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 letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?