The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
About init Puntino UNIX for Dummies Questions & Answers 2 04-26-2008 08:53 AM
different between /sbin/init and /usr/sbin/init userking SUN Solaris 2 02-19-2008 08:37 PM
Problem of booting system in init 5 level jagdish.machhi@ Linux 1 08-30-2007 10:11 AM
I cannot init kde elfyl Linux 3 08-09-2005 09:17 PM
init.d BC_Kevin UNIX for Dummies Questions & Answers 1 11-22-2000 03:03 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-02-2005
sc2005 sc2005 is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 4
Init 6 & Init 0 problem

Hi Expert,

I have encountered some problem with my SUN system. Everytime when i issue command #init 6 OR #init 0 it just logout and prompt for login again instead of rebooting the server when run init 6 and system shutdown when run init 0..

I can only reboot the system using reboot ... Was wondering what happen to the system ???

Unable to find any solution from the SUN website..

Appreciate anyone can help...
  #2 (permalink)  
Old 09-02-2005
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
First off, the command to switch runlevels is not "init", but "telinit". I don't now about Sun machines, on AIX "init" and "telinit" do the same, so that may be no problem.

Possible places to look for problems: /etc/inittab and /etc/rc.d/rc<n>.d, where <n> is the number of the runlevel making problems.

Hope this helps.

bakunin
  #3 (permalink)  
Old 09-02-2005
Unbeliever Unbeliever is offline
Registered User
  
 

Join Date: Jul 2005
Location: England
Posts: 183
Quote:
Originally Posted by bakunin
First off, the command to switch runlevels is not "init", but "telinit".
FYI this is not strictly true on Suns. The telinit command (/etc/telinit) is simply a soft link to /sbin/init. So strickly speaking init it the command and telinit is the alias.

Does ths shutdown command do the same thing for you? You can change system runtime levels with it in much the same way as init except there is a slight delay even if you specify 0 delay :-)

For init level 0, no wait time, dont ask for confirmation:

shutdown -g0 -i0 -y

For init level 6, no wait time, dont ask for confirmation:

shutdown -g0 -i6 -y
  #4 (permalink)  
Old 09-02-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Suggest you look at your init command - First, find out which one you are using
# which init
If it's /usr/sbin/init, then check on another server running the same version of Solaris for the file - check that the patch levels are the same and run a checksum against both init files and compare the output. If they are different, then one may be corrupt (make sure both servers are at the same level of patching)
# sum /usr/sbin/init

Using the shutdown command as suggested by Unbeliever is good advice since the shutdown command is just a script which runs a /sbin/init command at the end of the script.
  #5 (permalink)  
Old 09-02-2005
Unbeliever Unbeliever is offline
Registered User
  
 

Join Date: Jul 2005
Location: England
Posts: 183
Gah .. I really should explain myself better sometimes :-)

As RTM correctly points out shutdown is simply a script which then calls /sbin/init. His suggestion to determine which init you are running is a good one.

/usr/sbin/init and /sbin/init are *not* the same (one is statically linked the other dynamically) and you should try both to see if they do different things.

If /sbin/init doesn't work and /usr/sbin/init does then its possible that /sbin/init is corrupt. If /sbin/init works and /usr/sbin/init doesnt then /usr/sbin/init and/or one of the files it depends on (use: ldd /usr/sbin/init) maybe corrupt.
  #6 (permalink)  
Old 09-02-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
My guess is that one of the scripts in /etc/rc0.d is hanging. Do an ls -l in that directory and check the recent additions. If not that, my next guess would be that /sbin/uadmin is missing or corrupt.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0