difference between init and shutdown | Unix Linux Forums | Solaris

  Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 07-17-2009
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 2 March 2015, 11:20 AM EST
Location: Ashburn, Virginia
Posts: 9,931
Thanks: 64
Thanked 444 Times in 263 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 Unix and Linux 07-20-2009
ilikecows's Unix or Linux Image
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 Unix and Linux 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 Unix and Linux 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. Unix or Linux Image
Sponsored Links
    #6  
Old Unix and Linux 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. Unix or Linux Image
thnks a lot ..Unix or Linux Image
Sponsored Links
    #7  
Old Unix and Linux 07-27-2009
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 6 March 2015, 4:53 AM EST
Location: Zürich
Posts: 8,530
Thanks: 336
Thanked 1,065 Times in 928 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image 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 03:53 AM
About init Puntino UNIX for Dummies Questions & Answers 2 04-26-2008 09:53 AM
difference b/w halt shutdown visu_ak Solaris 2 09-20-2007 04:21 AM
Init 6 & Init 0 problem sc2005 UNIX for Advanced & Expert Users 6 09-06-2005 11:36 AM
init.d BC_Kevin UNIX for Dummies Questions & Answers 1 11-22-2000 03:03 PM



All times are GMT -4. The time now is 01:30 PM.