You are not logged in.

#1 2006-03-05 11:40:49

Pentadrago
Member
From: Germany
Registered: 2003-11-24
Posts: 16

rc.shutdown hangs on shutdown/reboot

Hi,
I installed Arch two weeks ago. Unfortunately it hangs at shutdown/reboot. It stopps succesfully the network-daemon and stops at this point. Keyboard and Mouse are responding but I'm unable to log in via a different console.

The daemon that should be stopped after network is syslog-ng.

My daemons:

DAEMONS=(syslog-ng !hotplug !pcmcia network nscd portmap fam nfslock netfs ypbind autofs crond gdm)

I was able to reboot the system succesfully by disabling syslog-ng in the rc.conf and commenting out following lines of the rc.shutdown:

#!/bin/bash
#
# /etc/rc.shutdown
#

. /etc/rc.conf
. /etc/rc.d/functions

# avoid staircase effect
/bin/stty onlcr

echo " "
printhl "Initiating Shutdown..."
echo " "

if [ -x /etc/rc.local.shutdown ]; then
    /etc/rc.local.shutdown
fi

if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
    # Shutdown daemons
    let i=${#DAEMONS[@]}
    while [[ i -ge 0 ]]; do
        if [[ `echo ${DAEMONS[$i]} | grep '^[^!]' | wc -l` -eq 1 ]]; then
                /etc/rc.d/${DAEMONS[$i]#@} stop
        fi
        let i=i-1
    done
    # find any leftover daemons and shut them down

    # these lines cause my system to stop the shutdown

    #if [ -d /var/run/daemons ]; then
    #    for daemon in `ls /var/run/daemons`; do
    #        /etc/rc.d/$daemon stop
    #    done
    #fi
fi

# Terminate all processes
stat_busy "Sending SIGTERM To Processes"
/sbin/killall5 -15 &> /dev/null
/bin/sleep 5
stat_done

. . .

I have absolutely no idea why my system is acting this way.

[UPDATE]
I tried using syslogd instead of syslog-ng but there's still the same problem. Why does my system dislike a system-logger this much?


Before we could talk we were singing,
before we could run we were dancing.
"On Earth" by Samael

Offline

#2 2009-08-21 00:59:00

BiynaYahu
Member
Registered: 2009-08-21
Posts: 1

Re: rc.shutdown hangs on shutdown/reboot

*bump*

I have an almost identical problem to this one.  Which would be the most pertinent system, and log files one would need to help me trouble shoot this?

Mike

Offline

Board footer

Powered by FluxBB