r9: - dodao aosi
[monit-cn.git] / monit-cn / proftpd.conf
index d71f454..467ab2d 100644 (file)
@@ -2,4 +2,6 @@
 
 check process proftpd with pidfile "/var/run/proftpd.pid"
     start program = "/etc/init.d/proftpd start"
-    stop program  = "/etc/init.d/proftpd stop"
+    stop program = "/etc/init.d/proftpd stop"
+       if failed host 127.0.0.1 port 21 protocol ftp
+               then restart