Browse Source

Avoid repeated emails on tor failure

Bob Mottram 6 years ago
parent
commit
dc73d01410
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-utils-onion

+ 1
- 1
src/freedombone-utils-onion View File

322
       echo '    fi';
322
       echo '    fi';
323
       echo '    exit 0';
323
       echo '    exit 0';
324
       echo 'fi';
324
       echo 'fi';
325
-      echo "tail -n 3 /var/log/tor/notices.log | mail -s \"[${PROJECT_NAME}] Tor status is \$status\" \$ADMIN_USER@\$HOSTNAME";
326
       echo 'if [ ! -f /tmp/.torfailed ]; then';
325
       echo 'if [ ! -f /tmp/.torfailed ]; then';
326
+      echo "    tail -n 3 /var/log/tor/notices.log | mail -s \"[${PROJECT_NAME}] Tor status is \$status\" \$ADMIN_USER@\$HOSTNAME";
327
       echo '    touch /tmp/.torfailed';
327
       echo '    touch /tmp/.torfailed';
328
       echo 'fi'; } > /usr/bin/check_tor_health
328
       echo 'fi'; } > /usr/bin/check_tor_health
329
     chmod +x /usr/bin/check_tor_health
329
     chmod +x /usr/bin/check_tor_health