containers-tor/monit.conf

14 lines
421 B
Plaintext
Raw Normal View History

2020-07-18 23:00:32 +00:00
check program hidden_services_bootstrap
with path "/usr/local/bin/hidden_services bootstrap"
every 1 cycle
if status = 0 then unmonitor
check process tor with pidfile /var/lib/tor/tor.pid
start program = "/usr/bin/tor"
stop program = "/bin/sh -c 'cat /var/lib/tor/tor.pid | xargs -r kill'"
check program hidden_services
with path "/usr/local/bin/hidden_services"
every 1 cycle
if status != 0 then alert