LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-10-2007, 05:53 AM   #1
zarazek
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
INIT: no more processes left in this run level


Hello

I did a fresh install of Mandrake Linux 10.0 on my small home server two weeks ago. Everything used to work fine over the next days. ACPI and APC both are enabled in BIOS - no problems with shuting down or powering off the server (shutdown -r now, poweroff, halt, reboot).

Few days later I did three things:
1. uninstall of linuxconf
2. install & configure to work apcupsd (UPS management)
3. install of the latest stable Webmin (and went over all of its resources)

UPS used to shut down system correctly.
And finally yesterday I found out that my server cannot reboot nor power off. After "shutdown -r now" (also after "reboot" or "poweroff" or "halt")system is closing several processes and then hangs on this:

Code:
INIT: switching to run level: 6
INIT: sending processes the TERM signal
(closing some servers and services)
Running killall
INIT: no more processes left in this run level
It is still possible to use my keyboard at this stage so that I type "reboot" and only then the system reboots.
Typing "poweroff" at this stage results in... nothing.
After this "forced reboot" system detects that "/dev/hda5 was not cleanly unmounted, check forced".


Here are a few ideas about some other things I did before & after the problem occured:
- before: I had used the "acpi=force" parameter in lilo and (now its removed)
- after: I checked all the combinations of ACPI ON/OFF and APC ON/OFF in bios (without any results)
- after: I removed my APC UPS usb cable from the socket (no results)
- after: I commented (#) all the lines concerning my UPS from /etc/inittab and from /etc/rc.d/init.d/halt (no results)
- when I hit CTRL-ALT-DEL system hangs in the same place, but with keyboard locked (I cannot type)
- removing power plug causes UPS shutting down the system and hanging in the same place
- I have seen some "umount: /initrd: device is busy" line somewhere during checking hda5 procedure (not sure if it means anything)
- I removed all the possible services from boot procedure (alsa, apcupsd, atd, crond, cvs, devfsd, dhcpd, dm, fam, harddrake, hotplug, hylafax, keytable, kheader, mysql, named, netfs, netplugd, network, nfslock, numlock, partmon, postfix, random, rawdevices, rsync, shorewall, smb, sound, squid, sshd, sshd-xinted, switchprofile, syslog, vdomaincheck, vncserver, webmin, xfs) except: (iptables, routed, xinetd) - but no results
- I booted in fail-safe mode (no results)

Here's my inittab:
Code:
id:3:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Hylafax
m01:2345:respawn:/usr/local/sbin/faxgetty ttyS1

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

Last edited by zarazek; 12-10-2007 at 06:20 AM.
 
Old 12-12-2007, 07:38 AM   #2
zarazek
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Original Poster
Rep: Reputation: 0
SOLVED.

/etc/rc6.d/S01reboot & /etc/rc0.d/S01halt
were missing somehow...

After:
rpm -ihv --allfiles /rpms/RPMS/initscripts*
everything works fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Init run level 1 Gortex Linux - Newbie 5 06-29-2007 01:27 AM
INIT: no more processes left on this runlevel sanu Linux - General 1 10-15-2006 03:21 PM
/etc/X11/xinit/.Xmodmap; run level 4 won't init script Potatopopper Slackware 5 11-27-2005 07:37 PM
INIT: no more processes left in this runlevel netsina Red Hat 3 07-04-2005 03:21 AM
INIT: no more processes left in this runlevel ..:eMa:.. Linux - Newbie 8 10-29-2003 11:49 AM


All times are GMT -5. The time now is 05:23 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration