Skip to content
Snippets Groups Projects
Commit 5dc1cee3 authored by brinn's avatar brinn
Browse files

fix: problem with restart when previous Datamover deletes datamover.pid file of its successor

SVN: 7480
parent f8f0a8bb
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,16 @@ case "$command" in
isPIDRunning $PID
if [ $? -eq 0 ]; then
kill $PID
if [ $? -eq 0 ]; then
n=0
while [ $n -lt $MAX_LOOPS ]; do
isPIDRunning $PID
if [ $? -ne 0 ]; then
break
fi
n=$(($n+1))
done
isPIDRunning $PID
if [ $? -ne 0 ]; then
echo "(pid $PID)"
# Shouldn't be necessary as Datamover deletes the file itself, but just to be sure
test -f $PIDFILE && rm $PIDFILE 2> /dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment