Report tor status as starting if uptime is small
This commit is contained in:
parent
800ec2febc
commit
1daf58fcd2
|
@ -48,14 +48,22 @@ done < /var/log/tor/notices.log
|
||||||
mv /var/log/tor/notices_new.log /var/log/tor/notices.log
|
mv /var/log/tor/notices_new.log /var/log/tor/notices.log
|
||||||
chown -R debian-tor:adm /var/log/tor
|
chown -R debian-tor:adm /var/log/tor
|
||||||
|
|
||||||
if [ $ctr -gt 5 ]; then
|
UPTIME=$(awk -F '.' '{print $1}' < "/proc/uptime")
|
||||||
echo $'Failed'
|
if [ "$UPTIME" -gt 500 ]; then
|
||||||
exit 0
|
if [ $ctr -gt 5 ]; then
|
||||||
fi
|
echo $'Failed'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $ctr -gt 0 ]; then
|
if [ $ctr -gt 0 ]; then
|
||||||
echo $'Poor'
|
echo $'Poor'
|
||||||
exit 0
|
exit 0
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ $ctr -gt 0 ]; then
|
||||||
|
echo $'Starting'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $'Good'
|
echo $'Good'
|
||||||
|
|
Loading…
Reference in New Issue