fix scripts.
This commit is contained in:
parent
0850089b94
commit
0bbbffbd38
@ -28,9 +28,8 @@ if [[ $CRM_notify_node == $hostname ]]; then
|
||||
logger "CRM_notify_task: $CRM_notify_task, CRM_notify_desc: $CRM_notify_desc"
|
||||
logger "CRM_notify_rsc: $CRM_notify_rsc, CRM_notify_node: $CRM_notify_node"
|
||||
logger " ******************************************************************* "
|
||||
fi
|
||||
|
||||
if [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'start' && \
|
||||
if [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'start' && \
|
||||
$CRM_notify_node == $hostname ]]; then
|
||||
if [[ ${CRM_notify_desc} == 'OK' || ${CRM_notify_desc} == 'ok' ]]; then
|
||||
check_pid
|
||||
@ -41,13 +40,13 @@ if [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'start' && \
|
||||
sleep 3
|
||||
fi
|
||||
fi
|
||||
elif [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'stop' ]]; then
|
||||
elif [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'stop' ]]; then
|
||||
if [[ ${CRM_notify_desc} == 'OK' || ${CRM_notify_desc} == 'ok' ]]; then
|
||||
clean_pid
|
||||
fi
|
||||
elif [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'monitor' ]]; then
|
||||
elif [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'monitor' ]]; then
|
||||
if [[ ${CRM_notify_desc} == 'unknown error' ]]; then
|
||||
logger "TODO"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user