The problem appears to be caused when network manager catches the SIGTERM (15) signal
I have a workaround involving hard killing network manager with SIGKILL:
Modify /etc/dbus-1/event.d/25NetworkManager as follows (just add the --signal 9 option)
d_stop() {
# Modified MF 11 Feb 2008 To avoid NM hang #start-stop-daemon --stop --retry 60 --quiet --pidfile $PIDFILE \
# --oknodo --user $USER --exec $DAEMON
Modify /etc/init.d/sendsigs as follows
...
# Kill all processes. log_action_begin_msg "Terminating all remaining processes"
# Added MF 11 Feb 2008 To avoid shutdown hang
OMITNM=
if [ -f /var/run/NetworkManager/NetworkManager.pid ]; then OMITNM=$(cat /var/run/NetworkManager/NetworkManager.pid) OMITNM="-o $OMITNM"
fi
echo "Not killing $OMITNM"
The problem appears to be caused when network manager catches the SIGTERM (15) signal
I have a workaround involving hard killing network manager with SIGKILL:
Modify /etc/dbus- 1/event. d/25NetworkMana ger as follows (just add the --signal 9 option)
d_stop() {
#start- stop-daemon --stop --retry 60 --quiet --pidfile $PIDFILE \
# Modified MF 11 Feb 2008 To avoid NM hang
# --oknodo --user $USER --exec $DAEMON
}
Modify /etc/init. d/sendsigs as follows
log_action_ begin_msg "Terminating all remaining processes"
...
# Kill all processes.
# Added MF 11 Feb 2008 To avoid shutdown hang NetworkManager/ NetworkManager. pid ]; then
OMITNM= $(cat /var/run/ NetworkManager/ NetworkManager. pid)
OMITNM= "-o $OMITNM"
OMITNM=
if [ -f /var/run/
fi
echo "Not killing $OMITNM"
killall5 -15 $OMITPIDS $OMITNM
# END MF mods
log_action_ end_msg 0
...