fix lockfile removal

This commit is contained in:
Ward Wouts 2003-01-16 08:28:50 +00:00
parent 65e53a6f87
commit 6ae908b4e6

View file

@ -15,7 +15,8 @@ fi
if ( [ -e $LOCKFILE ]); then if ( [ -e $LOCKFILE ]); then
LOCKPID=`cat $LOCKFILE` LOCKPID=`cat $LOCKFILE`
if ( ! ps -p $LOCKPID|egrep -q "$LOCKPID" ); then if ( ! ps -p $LOCKPID|egrep -q "$LOCKPID" ); then
die "Stale lockfile found: $LOCKFILE" echo "Stale lockfile found: $LOCKFILE"
rm $LOCKFILE
else else
if ( ! [ -z "$PS1" ] ); then if ( ! [ -z "$PS1" ] ); then
echo "already running..." echo "already running..."