add
This commit is contained in:
10
4-广西移动项目/高可用配置/前端负载均衡/haproxy_check.sh
Normal file
10
4-广西移动项目/高可用配置/前端负载均衡/haproxy_check.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
COUNT=`ps -C haproxy --no-header |wc -l`
|
||||
if [ $COUNT -eq 0 ];then
|
||||
/usr/local/haproxy/sbin/haproxy -f /etc/haproxy/haproxy.cfg
|
||||
sleep 2
|
||||
if [ `ps -C haproxy --no-header |wc -l` -eq 0 ];then
|
||||
killall keepalived
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user