diff --git a/monit/generate.py b/monit/generate.py index 02bb4f90..4b83d562 100755 --- a/monit/generate.py +++ b/monit/generate.py @@ -297,7 +297,7 @@ def file_monitrc(hostname = host) : config += 'check process privoxy with pidfile /var/run/privoxy.pid\n' config += ' start program = "/etc/init.d/privoxy start"\n' config += ' stop program = "/etc/init.d/privoxy stop"\n' - config += ' if failed host %s.crans.org port 8118 then restart\n' % hostname + config += ' if failed host localhost port 8117 then restart\n' % hostname config += ' if 5 restarts within 5 cycles then timeout\n' config += '\n'