增加集群服务器ha配置;更新pyinstaller打包后找不到依赖库的bug.
This commit is contained in:
22
roles/ha_backup/templates/check_oam_service.sh.j2
Normal file
22
roles/ha_backup/templates/check_oam_service.sh.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
#running:0, stop:3
|
||||
STATE=$(systemctl status oam_cluster.service)
|
||||
|
||||
if [ $STATE -ne 0 ]
|
||||
then
|
||||
systemctl restart oam_cluster
|
||||
sleep 10
|
||||
STATE=$(systemctl status oam_cluster.service)
|
||||
if [ $STATE -ne 0 ]
|
||||
then
|
||||
killall keepalived
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#todo ,check consul_cluster, check influxdb
|
||||
Reference in New Issue
Block a user