Added checking process strings into check_pid script
This commit is contained in:
@@ -18,7 +18,7 @@ if [ "$PID" != "" ]; then
|
|||||||
debug "BACKGROUND PID: $PID"
|
debug "BACKGROUND PID: $PID"
|
||||||
|
|
||||||
#wait $PID
|
#wait $PID
|
||||||
while pwdx $PID > /dev/null; do
|
while pwdx $PID | grep -vE 'No such process' > /dev/null; do
|
||||||
debug "RUNNING PROCESS: $TASK - PID: $PID"
|
debug "RUNNING PROCESS: $TASK - PID: $PID"
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user