DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Power off a Solaris system | Solaris | Tech-Recipes

Started by qdideas · 9 months ago

No excerpt available. Jump to website »

2 comments

  • Sync is no longer necessary in any modern version of Unix (Solaris and Linux included). If you're a system administrator, you should learn proper use of the init command, which allows you to change runlevels. Here are a few different uses of init:

    # init 6 - reboots the system
    # init 5 - halts the system (turns power off)
    # init 0 - sends you to runlevel 0, which is the "ok" prompt (OpenBoot PROM)
    # init 1 - sends you to single user mode, useful for installing patches.
  • You could use the Sun recommended shutdown command. :wink:

    shutdown -y -i5 -g0

    look up the man page, but the i option specifies run level, the g option grace period in seconds before the shutdown and the y options answer yes to the usual question of are you sure.

Add New Comment

Returning? Login