Problems at shutdown

Peter Mendham petermendham at computing.dundee.ac.uk
Tue Nov 28 17:16:28 UTC 2006


Andy Green wrote:
> Peter Mendham wrote:
>> # CONFIG_DEBUG_INIT is not set
>> Am I right?  Is that OK?  If so, what else might be giving me problems?
> What does you /etc/inittab have in it?
Here is my inittab, it's a very slightly modified version of the default 
one:
=========================
# Startup the system
::sysinit:/etc/init.d/rcS

# Set up a getty
vc/0::respawn:/sbin/getty 38400 vc/0

# Put a getty on the serial port
tts/0::respawn:/sbin/getty -L tts/0 9600 vt100

# Logging junk
null::sysinit:/bin/touch /var/log/messages
null::respawn:/sbin/syslogd -n -m 0
null::respawn:/sbin/klogd -n
vc/3::respawn:/usr/bin/tail -f /var/log/messages

# Reboot on a 3-finger salute
::ctrlaltdel:/sbin/reboot

# Shutdown the system
null::shutdown:/etc/init.d/rcK
null::shutdown:/usr/bin/killall klogd
null::shutdown:/usr/bin/killall syslogd
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a
=========================
The crazy device names are because I have devfs running (you probably 
guessed).  I moved all the startup stuff into an rcS script, but I 
really didn't change much.  I can put it all back if it helps.  I was 
hoping to do the same on shutdown with an rcK script, but that's when I 
found tha nothing was getting run.  At the moment rcK just has an echo 
in it.  I'm seeing no messages from any of the shutdown processes and 
the file system never gets unmounted (which is a bummer because it means 
I get nasty warnings when I reboot).

Did that help?  Sorry if I went on too much.

Thanks,
-- Peter




More information about the busybox mailing list