ambed-debian-installer/templates/watchdog
M0VUB b51b5cfa4b
Create watchdog
add watchdog
2022-01-04 14:46:43 +00:00

15 lines
241 B
Bash

#!/bin/bash
sleep 5
PATTERN=timed
FILE=/var/log/syslog
if grep -q $PATTERN $FILE;
then
echo "ambed timeout error"
> /var/log/syslog
service ambed restart
else
echo "all ok"
echo "Exiting..."
exit 0
fi