Fix cleanup.
This commit is contained in:
parent
990bba1a5c
commit
291554610d
@ -11,10 +11,6 @@ logger "CRM_notify_node: $CRM_notify_node"
|
||||
logger " ** "
|
||||
|
||||
set -x
|
||||
CRM_notify_task="stop"
|
||||
CRM_notify_desc="OK"
|
||||
CRM_notify_rsc="res_PingCheck"
|
||||
|
||||
DEFAULT_PIDFILE="/tmp/monitor.pid"
|
||||
|
||||
function check_pid
|
||||
@ -55,7 +51,7 @@ if [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'start' ]]; th
|
||||
if [ $? -ne 0 ]; then
|
||||
logger "Executing monitor to reschedule Neutron agents..."
|
||||
#sudo python /usr/local/bin/monitor.py >> /dev/null 2>&1 & echo $! > $DEFAULT_PIDFILE
|
||||
sudo python monitor.py >> /dev/null 2>&1 & echo $!
|
||||
sudo python /usr/local/bin/monitor.py >> /dev/null 2>&1 & echo $!
|
||||
sleep 3
|
||||
pid=`ps -aux | grep m\[o\]nitor.py | awk -F' ' '{print $2}'`
|
||||
if [ ! -z "$pid" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user