Avoid repeated emails on tor failure
This commit is contained in:
parent
59af1821b9
commit
dc73d01410
|
@ -322,8 +322,8 @@ function check_tor_health {
|
||||||
echo ' fi';
|
echo ' fi';
|
||||||
echo ' exit 0';
|
echo ' exit 0';
|
||||||
echo 'fi';
|
echo 'fi';
|
||||||
echo "tail -n 3 /var/log/tor/notices.log | mail -s \"[${PROJECT_NAME}] Tor status is \$status\" \$ADMIN_USER@\$HOSTNAME";
|
|
||||||
echo 'if [ ! -f /tmp/.torfailed ]; then';
|
echo 'if [ ! -f /tmp/.torfailed ]; then';
|
||||||
|
echo " tail -n 3 /var/log/tor/notices.log | mail -s \"[${PROJECT_NAME}] Tor status is \$status\" \$ADMIN_USER@\$HOSTNAME";
|
||||||
echo ' touch /tmp/.torfailed';
|
echo ' touch /tmp/.torfailed';
|
||||||
echo 'fi'; } > /usr/bin/check_tor_health
|
echo 'fi'; } > /usr/bin/check_tor_health
|
||||||
chmod +x /usr/bin/check_tor_health
|
chmod +x /usr/bin/check_tor_health
|
||||||
|
|
Loading…
Reference in New Issue