ais/ais-autorestart.sh
2025-09-30 09:27:24 +02:00

8 lines
207 B
Bash
Executable File

#!/bin/bash
SERVICE="ais-runner"
if ! rc-service $SERVICE status | grep -q "started"; then
echo "$(date): $SERVICE is down. Restarting..." >> /var/log/service-monitor.log
rc-service $SERVICE restart
fi