add: 提交

This commit is contained in:
lichang
2023-08-14 17:02:50 +08:00
parent 897d45d443
commit 5ac2e981ea
163 changed files with 29466 additions and 0 deletions

8
misc/checkproc.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
process_name="restagent"
if ! pgrep -x "$process_name" >/dev/null; then
echo "$process_name is not running. Restarting..."
systemctl restart keepalived
fi