fix lockfile removal
This commit is contained in:
parent
65e53a6f87
commit
6ae908b4e6
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ fi
|
|||
if ( [ -e $LOCKFILE ]); then
|
||||
LOCKPID=`cat $LOCKFILE`
|
||||
if ( ! ps -p $LOCKPID|egrep -q "$LOCKPID" ); then
|
||||
die "Stale lockfile found: $LOCKFILE"
|
||||
echo "Stale lockfile found: $LOCKFILE"
|
||||
rm $LOCKFILE
|
||||
else
|
||||
if ( ! [ -z "$PS1" ] ); then
|
||||
echo "already running..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue