add: 提交
This commit is contained in:
8
misc/checkproc.sh
Normal file
8
misc/checkproc.sh
Normal 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
|
||||
Reference in New Issue
Block a user