fix scripts.

This commit is contained in:
Hui Xiang 2014-12-19 19:08:16 +08:00
parent 0850089b94
commit 0bbbffbd38

View File

@ -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_task: $CRM_notify_task, CRM_notify_desc: $CRM_notify_desc"
logger "CRM_notify_rsc: $CRM_notify_rsc, CRM_notify_node: $CRM_notify_node" logger "CRM_notify_rsc: $CRM_notify_rsc, CRM_notify_node: $CRM_notify_node"
logger " ******************************************************************* " 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 $CRM_notify_node == $hostname ]]; then
if [[ ${CRM_notify_desc} == 'OK' || ${CRM_notify_desc} == 'ok' ]]; then if [[ ${CRM_notify_desc} == 'OK' || ${CRM_notify_desc} == 'ok' ]]; then
check_pid check_pid
@ -41,13 +40,13 @@ if [[ $CRM_notify_rsc == 'res_PingCheck' && ${CRM_notify_task} == 'start' && \
sleep 3 sleep 3
fi fi
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 if [[ ${CRM_notify_desc} == 'OK' || ${CRM_notify_desc} == 'ok' ]]; then
clean_pid clean_pid
fi 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 if [[ ${CRM_notify_desc} == 'unknown error' ]]; then
logger "TODO" logger "TODO"
fi fi
fi
fi fi