大量更新

This commit is contained in:
zeaslity
2026-05-19 14:28:44 +08:00
parent a8f6bda703
commit 9fc3372fa3
5299 changed files with 423176 additions and 426690 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
log_file=/etc/keepalived/report.log
COUNT=$(systemctl status nginx | grep -c "active (running)")
if [ "$COUNT" -eq 0 ];then
echo "[ERROR] moniter nginx failure ! $(date) " >> ${log_file}
systemctl restart nginx
sleep 2
if [ $(systemctl status nginx | grep -c "active (running)") -eq 0 ];then
echo "[ERROR] restart nginx failed ! $(date) " >> ${log_file}
killall keepalived
fi
fi