Skip to content

Commit

Permalink
New TACA action if triggered by "Failed to find node for hop"
Browse files Browse the repository at this point in the history
  • Loading branch information
radio24 committed Dec 29, 2024
1 parent a028d6f commit ea07833
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/automat
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ elif [ $ARGUMENT = 2 ]; then
fi
fi

# Entry 3: Restart Tor, an reconect wifi, if needed.
# Entry 3: Restart Tor, and reconect wifi, if needed.
# This should work in every configuration
elif [ $ARGUMENT = 3 ]; then
INTERNET_IFACE=$(grep "^INTERNET_IFACE=" $RUNFILE | sed "s/.*=//g")
Expand Down
7 changes: 7 additions & 0 deletions install/log_check_config/006
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@
"match_count": 25, # min matches to execute command
"match_time": 2*60, # (seconds) time range of match count to execute cmd
"command": 'sudo bash /home/torbox/torbox/bin/automat 2 1',
},
{
"file": '/var/log/tor/notices.log',
"match": "*ailed to find node for hop*", # use * as wildcard
"match_count": 2, # min matches to execute command
"match_time": 2*60, # (seconds) time range of match count to execute cmd
"command": 'sudo bash /home/torbox/torbox/bin/automat 3',
},

0 comments on commit ea07833

Please sign in to comment.