configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 101  →  ?path2? @ 102
/monit/debian/templates/motion
@@ -0,0 +1,11 @@
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
###########################################################################
 
# Debian motion does not create a pid file so a process match is used.
check process motion matching "motion"
start program "/etc/init.d/motion restart"
stop program "/etc/init.d/motion stop"
# Enable webcontrol_port and adjust 8085 to match value.
if failed host 127.0.0.1 port 8085 type tcp then restart
# if 5 restarts within 5 cycles then timeout
/monit/debian/templates/tor
@@ -6,4 +6,4 @@
start program "/etc/init.d/tor restart"
stop program "/etc/init.d/tor stop"
if failed host 127.0.0.1 port 9050 type tcp then restart
# if 5 restarts within 5 cycles then timeout
# if 5 restarts within 5 cycles then timeout