difference between init and shutdown | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

difference between init and shutdown

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-17-2009
rogerben rogerben is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 17 March 2014, 7:48 AM EDT
Location: India
Posts: 115
Thanks: 11
Thanked 0 Times in 0 Posts
difference between init and shutdown

Hi,

Am new to solaris.Can anyone explains me the difference between using init and shutdown command. As per my knowledge shutdown will give notification to users, is there anything apart from that.


thanks in advance.
Sponsored Links
    #2  
Old 07-17-2009
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 24 April 2014, 12:18 PM EDT
Location: Ashburn, Virginia
Posts: 9,838
Thanks: 42
Thanked 382 Times in 227 Posts
shutdown is a wrapper that calls init. There is a delay and it can ask a final confirmation question. So you can change your mind at the last minute.
Sponsored Links
    #3  
Old 07-20-2009
ilikecows's Avatar
ilikecows ilikecows is offline
Registered User
 
Join Date: Jul 2009
Last Activity: 24 December 2011, 7:16 AM EST
Location: /dev/random
Posts: 201
Thanks: 12
Thanked 10 Times in 8 Posts
Shutdown also sends a message to the console informing all users that the system is about to go down. Any user with a terminal attached to the console will receive this message in that terminal.
    #4  
Old 07-20-2009
rogerben rogerben is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 17 March 2014, 7:48 AM EDT
Location: India
Posts: 115
Thanks: 11
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by ilikecows View Post
Shutdown also sends a message to the console informing all users that the system is about to go down. Any user with a terminal attached to the console will receive this message in that terminal.
Pls can you explain ur point more clearly..
Sponsored Links
    #5  
Old 07-20-2009
upengan78 upengan78 is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 5 September 2012, 2:35 PM EDT
Location: Texas
Posts: 206
Thanks: 6
Thanked 1 Time in 1 Post
Quote:
Originally Posted by rogerben View Post
Pls can you explain ur point more clearly..
What it means is that, if you give shutdown command in a solaris shell, then anyone connected to system shell will see a message on their screen that system is going down in 1 minute...then again after 30 seconds...

You can ssh to your test system and watch the screen. At the same time give shutdown command at console. See it yourself.
Sponsored Links
    #6  
Old 07-27-2009
rogerben rogerben is offline
Registered User
 
Join Date: Jan 2009
Last Activity: 17 March 2014, 7:48 AM EDT
Location: India
Posts: 115
Thanks: 11
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by upengan78 View Post
What it means is that, if you give shutdown command in a solaris shell, then anyone connected to system shell will see a message on their screen that system is going down in 1 minute...then again after 30 seconds...

You can ssh to your test system and watch the screen. At the same time give shutdown command at console. See it yourself.
thnks a lot ..
Sponsored Links
    #7  
Old 07-27-2009
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 24 April 2014, 10:43 AM EDT
Location: in der Schweiz
Posts: 8,322
Thanks: 313
Thanked 1,013 Times in 886 Posts
Init is also more flexible for switching run-levels... as I have to do because "startx" doesn't work on my Linux - gives some blah blah error about something. Being too lazy to fix it, I use "init 5" instead, which works just fine! (that's my Linux - init 5 means different things on different Unix's).

---------- Post updated at 08:46 PM ---------- Previous update was at 08:08 PM ----------

(actually, slightly inaccurate: init isn't more flexible (because you can specify a new run-level using shutdown) - but it's simpler to use init sometimes)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Difference between "shutdown" and "shutdown -h" ? vilius AIX 1 12-10-2008 02:53 AM
About init Puntino UNIX for Dummies Questions & Answers 2 04-26-2008 08:53 AM
difference b/w halt shutdown visu_ak Solaris 2 09-20-2007 03:21 AM
Init 6 & Init 0 problem sc2005 UNIX for Advanced & Expert Users 6 09-06-2005 10:36 AM
init.d BC_Kevin UNIX for Dummies Questions & Answers 1 11-22-2000 02:03 PM



All times are GMT -4. The time now is 12:26 PM.