ambed-debian-installer/templates/watchdog

15 lines
241 B
Plaintext
Raw Permalink Normal View History

2022-01-04 09:46:43 -05:00
#!/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