configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 169  →  ?path2? @ 170
/monit/debian/templates/bind
@@ -3,8 +3,8 @@
###########################################################################
 
check process named with pidfile /var/run/named/named.pid
start program = "/etc/init.d/bind9 start"
stop program = "/etc/init.d/bind9 stop"
start program = "/usr/bin/systemctl start named"
stop program = "/usr/bin/systemctl stop named"
if failed host 127.0.0.1 port 53 type tcp protocol dns then restart
if failed host 127.0.0.1 port 53 type udp protocol dns then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/tor-instance
@@ -0,0 +1,17 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
check process tor-01 with pidfile /var/run/tor-instances/01/tor.pid
start program "/bin/systemctl restart tor@01"
stop program "/bin/systemctl stop tor@01"
if failed host 127.0.0.1 port 9051 type tcp then restart
if failed host 127.0.0.1 port 8051 type tcp and
# password is: tor surrounded by quotes 0x22
send "AUTHENTICATE \0x22tor\0x22\n"
expect "250 OK"
send "GETINFO status/circuit-established\n"
expect "250-status/circuit-established=1"
retry 1
timeout 5 seconds
then restart