Files
be.ems/misc/checkproc.sh
2023-08-14 17:02:50 +08:00

8 lines
177 B
Bash

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