![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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... |
|
||||
|
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 |
|
||||
|
Quote:
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 |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|