OpenSUSE 12.2
I'm getting messages like
Dec 23 10:56:35 madhatter netconfig: open lock for netconfig failed. Abort.
in my messages file. I put the following debugging in
/etc/sysconfig/network/scripts/functions.netconfig:
function openLock() {
test -z "$1" && return 1
PRGNAME=$1
PID=$$
PIDPATH="/var/run/$PRGNAME.pid"
date >> /tmp/netconfig_debug
echo "PRGNAME=$PRGNAME, PID=$PID, PIDPATH=$PIDPATH" >>
/tmp/netconfig_debug
if [ -e $PIDPATH ]; then
# check if the process is still running
OLDPID=`cat $PIDPATH`
echo "OLDPID=$OLDPID" >> /tmp/netconfig_debug
if [ ! -e "/proc/$OLDPID/cmdline" ]; then
debug "pid does not exists; remove lock"
# pid does not exists; remove lock
rm $PIDPATH
echo "Removing lock" >> /tmp/netconfig_debug
else
if grep "$PRGNAME" /proc/$OLDPID/cmdline >/dev/null 2>&1 ; then
debug "process still running"
echo "process still running" >> /tmp/netconfig_debug
# process still running
return 1;
else
debug "this pid is a different process; remove the lock"
# this pid is a different process; remove the lock
echo "pid is different process. Removing lock" >>
/tmp/netconfig_debug
rm $PIDPATH
fi
fi
fi
echo "lockfile created" >> /tmp/netconfig_debug
echo -n "$PID" > $PIDPATH
debug "lockfile created ($PIDPATH) for PID $PID"
return 0
}
and I get the following debug lines:
Sun Dec 23 08:52:17 PST 2012
PRGNAME=netconfig, PID=25741, PIDPATH=/var/run/netconfig.pid
lockfile created
Sun Dec 23 08:52:17 PST 2012
PRGNAME=netconfig, PID=25737, PIDPATH=/var/run/netconfig.pid
Sun Dec 23 08:52:17 PST 2012
PRGNAME=netconfig, PID=25745, PIDPATH=/var/run/netconfig.pid
OLDPID=25741
OLDPID=25741
process still running
process still running
Sun Dec 23 08:52:22 PST 2012
Sun Dec 23 08:52:22 PST 2012
PRGNAME=netconfig, PID=25737, PIDPATH=/var/run/netconfig.pid
lockfile created
PRGNAME=netconfig, PID=25745, PIDPATH=/var/run/netconfig.pid
OLDPID=25737
process still running
Sun Dec 23 08:52:28 PST 2012
PRGNAME=netconfig, PID=25745, PIDPATH=/var/run/netconfig.pid
lockfile created
Notice how it is starting up a bunch of netconfig in parallel. Why is
this happening? (I'm using NetworkManager for my interfaces).
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse+owner(a)opensuse.org