Files
be.ems/misc/checkproc.sh
2024-10-22 14:39:30 +08:00

8 lines
177 B
Bash
Executable File

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