14 lines
421 B
Plaintext
14 lines
421 B
Plaintext
|
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
|