pound:pound_keepalived:checkstart.sh
#!/bin/sh CHECK_SHELL=/etc/keepalived/check.sh #チェック用シェルが起動されていたらkillする CHEK_SHELL_PS=`ps -ef | grep $CHECK_SHELL | grep -v grep` if [ -n "$CHEK_SHELL_PS" ] ; then for PID in `echo $CHEK_SHELL_PS | awk '{print $2}'` ; do echo "kill -9 $PID" kill -9 $PID done fi $CHECK_SHELL & exit
pound/pound_keepalived/checkstart.sh.txt · 最終更新: 2011/05/13 07:00 by 127.0.0.1