1
0
Files
build.ems/build/usr/local/omc/bin/checkproc.sh
2024-10-25 14:59:47 +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