Operating System - Linux
1753937 Members
9556 Online
108811 Solutions
New Discussion юеВ

rhl 9 box hangs after INIT: no more process left in this runlevel

 
SOLVED
Go to solution
Maaz
Valued Contributor

rhl 9 box hangs after INIT: no more process left in this runlevel

Hello All

just after installing the rhl 9.0, i boot the system, every thing went fine. but when i issued init 6, to restart the system, or init 0, my system hangs on the following stage

INIT: no more process left in this runleve.

after receiving the above message my system remains hang.

init 6
INIT: Switching to runlevel 6
INIT: Sending process the TERM signal
Shutting down the xfs: [ok]
Shutting down the console mouse service: [ok]
Saving random seed: [ok]
Shutting down Kernel logger: [OK]
Shutting down System logger: [OK]
Shutting down interface eth0: [OK]
Shutting down loopback interface: [ok]
INIT: no more process left in this runlevel

at this point my system remains hang, so I have to hard boot my system, or power off.

I have attached the /var/log/messages, and the output of dmesg.

Thanking u in anticipation.

Rgrds
Maaz.
10 REPLIES 10
Alexander Chuzhoy
Honored Contributor
Solution

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

see that you have under /etc/rc6.d and under /etc/rc0.d/ files that start with "S"


S00killall and
S01reboot for /etc/rc6.d
or
S01halt for /etc/rc0.d

If you don't -then you'll have to create symbolic links from /etc/init.d directory to respective files
so for instance to check your init0
ln -s /etc/init.d/killall /etc/rc0.d/S00killall

then

ln -s /etc/init.d/halt /etc/rc0.d/S01halt

then issue init 0
and tell us if it worked.....
Best regards
Maaz
Valued Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

Yes, Its working, ... its working 100%, Many Thanks Alexander, I am extremely thankful to u for the favor.

here are the reports

[root@linux101 mnt]# ls /etc/rc0.d/S00killall
ls: /etc/rc0.d/S00killall: No such file or directory

[root@linux101 mnt]# ls /etc/rc0.d/S01halt
ls: /etc/rc0.d/S01halt: No such file or directory

then as per ur instruction, i did the following

ln - s /etc/init.d/killall /etc/rc0.d/S00killall
ln -s /etc/init.d/halt /etc/rc0.d/S01halt


but, I dont have the 'reboot' script in /etc/init.d, thats why I cant create the link in

/etc/rc6.d
[root@linux101 mnt]# ls /etc/init.d/reboot
ls: /etc/init.d/reboot: No such file or directory

So plz le me know, if it is possible to install the reboot script from installation media, that is, if there is any rpm that will install the script. Or otherwise anyone here can send me the script.

Regards
Maaz
Stuart Browne
Honored Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

'S01reboot' is a symoblic link to '/etc/init.d/halt'.
One long-haired git at your service...
Maaz
Valued Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

Thanks Stuart,
As Alexander already explained, but I was doing the mistake, and u notify me the mistake.

Yes its working
ln -s /etc/init.d/halt /etc/rc6.d/S01reboot

I was mistakingly searching for /etc/init.d/reboot.

btw, any one can pleaze explain, why these scripts didnt create the symlinks, in the respective directories(rc0.d, rc6.d), although the installation went quite smooth.

And is there any rpm that install these essential scripts, and creates the symlinks to the directories where these scripts are required.

Again Many Thanks Stuart, and indeed Alexander, for the support.

Regards
Maaz
Stuart Browne
Honored Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

I've honestly never seen a system do that before.

We build up RH9 boxes via a KS on a regular basis (probably have 15-20 in the field as well), so if it was an inherent thing with the RH build, I'm sure I would have seen it by now.

By the same token, using 'init 6' to reboot a box really isn't the nicest way to do it. It's what the 'shutdown -r now' command is for.
One long-haired git at your service...
Maaz
Valued Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

Dear Stuart again Thanx for assistance.

If u can(or any1 else) plz explain the major diffrences between "shutdown -r 0", and "init 6".

what i experienced/observed is that "shutdown -r/h" command first does the broadcast the warning message of system shutdown, and then shuts the system down, while "init 0/6" doesnt broadcast the warning message, but simply put the system shutdown.

Hope u(or any1 else) wont mind to reply my bogus questions

Thanx n Regards
Maaz
Stuart Browne
Honored Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

Start by reading 'man shutdown'.

It's just a bit friendlier to the system.
One long-haired git at your service...
Maaz
Valued Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

Thanks for ur precious reply

Regards
Maaz
Ross Minkov
Esteemed Contributor

Re: rhl 9 box hangs after INIT: no more process left in this runlevel

I think that one of the main advantages of shutdown over init is that you can use it with time delay (different than 0). If shutdown is called with a time delay, it creates /etc/nologin which causes programs such as login to not allow new user logins. Shutdown removes this file if it is stopped before it can signal init (i.e. it is cancelled with shutdown -c).

HTH,
Ross