mirror of
https://github.com/ShaYmez/ambed-debian-installer.git
synced 2024-11-24 16:58:41 -05:00
15 lines
241 B
Plaintext
15 lines
241 B
Plaintext
|
#!/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
|