configuration-templates
/monit/debian/templates/rsyncd |
---|
@@ -11,6 +11,8 @@ |
check process rsync with pidfile /var/run/rsyncd.pid |
start program "/etc/init.d/rsync start" |
stop program "/etc/init.d/rsync stop" |
check host rsync-net with address localhost |
if failed port 873 type tcp then restart |
if failed port 873 type udp then restart |
# if 5 restarts within 5 cycles then timeout |
# if failed port 873 type udp then restart |
# if 5 restarts within 5 cycles then timeout |