Silence lock wrapper if script is still running
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
c29ffd217f
commit
8773b6d931
2 changed files with 0 additions and 43 deletions
|
@ -22,8 +22,6 @@ if ! mkdir "$LOCKDIR"; then
|
|||
PID=$(cat "$PIDFILE")
|
||||
if [ -n "$PID" ] && /bin/ps $PID > /dev/null
|
||||
then
|
||||
echo "$PID is still running"
|
||||
/bin/ps -o user,pid,start,time,comm $PID
|
||||
exit 1;
|
||||
else
|
||||
echo "$LOCKDIR exists but $PID is dead"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue