Unix Technical Forum

Reboot Vs Init 0/5/6 Vs Shutdown Vs Halt

This is a discussion on Reboot Vs Init 0/5/6 Vs Shutdown Vs Halt within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi guys, Can anybody please help me to understand the differences between the system boot commands..... Like when and ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2008, 11:51 AM
vinsidus@gmail.com
 
Posts: n/a
Default Reboot Vs Init 0/5/6 Vs Shutdown Vs Halt

Hi guys,

Can anybody please help me to understand the differences between the
system boot commands..... Like when and why should we use reboot
command or init 6 or shutdown etc...etc..??

Thanks in advance...


-Vinu.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2008, 11:52 AM
David Magda
 
Posts: n/a
Default Re: Reboot Vs Init 0/5/6 Vs Shutdown Vs Halt

"vinsidus@gmail.com" <vinsidus@gmail.com> writes:

> Can anybody please help me to understand the differences between the
> system boot commands..... Like when and why should we use reboot
> command or init 6 or shutdown etc...etc..??


halt(1M) brings down the machine to the PROM (on SPARC) immediately,
with very little regard to running the scripts in /etc/rc[0-6].d to
take things down cleanly. reboot(1M) is the same, except instead of
just stopping the OS, it reboots the machine.

init(1M) would run the scripts in /etc/rc[0-6].d to (hopefully) take
down the running processes cleanly, and then call halt, reboot, or
poweroff(1M) depending on the argument you give it.

shutdown(1M) allows you to first give a time when the machine will
shutdown, prints warnings to users logged in (and possibly to any NFS
clients), and then calls init(1M). init then does things like
described in the above paragraph.

Using shutdown or init is usually the best way to go about things
AFAIK.

I try to keep in the habit of using shutdown(1M) since by default it
gives a grace period before doing things. This way if you're /not/ on
the machine you think you are (you're on production, and not a testing
server), you still have an opportunity to cancel things before
accidentally disrupting service.

--
David Magda <dmagda at ee.ryerson.ca>
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:04 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com