1
0

solve conflict file

This commit is contained in:
zhangsz
2024-10-25 14:58:42 +08:00
parent 5cdb82297a
commit 3649afe328
1533 changed files with 77808 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
threshold=99 # 设置硬盘使用率的阈值
disk_usage=$(df -h | awk '$NF=="/"{print $(NF-1)}' | sed 's/%//') # 获取根目录的硬盘使用率
if [ $disk_usage -gt $threshold ]; then
echo "Disk usage is above $threshold%. Taking action..."
systemctl restart keepalived
fi