424 |
# Kill the waiter if it is still there |
# Kill the waiter if it is still there |
425 |
if [ -n "`ps -opid= -p $waiter_pid`" ];then |
if [ -n "`ps -opid= -p $waiter_pid`" ];then |
426 |
kill $waiter_pid 2> /dev/null |
kill $waiter_pid 2> /dev/null |
427 |
|
# Call wait here to prevent logging of termination at end of script |
428 |
|
wait $waiter_pid 2> /dev/null |
429 |
fi |
fi |
430 |
|
|
431 |
# If probe was killed, it's exit value will be outside valid nagios range of 0-3 |
# If probe was killed, it's exit value will be outside valid nagios range of 0-3 |