[monit] Vsftpd écoute sur l'adresse privée si c'est la seule qui existe.

darcs-hash:20081208020904-ffbb2-ec3bd3421400cf5cade4dc805c8b57b9fafdad3a.gz
This commit is contained in:
Nicolas Dandrimont 2008-12-08 03:09:04 +01:00
parent 273a123c2c
commit b46dc1dbdc

View file

@ -152,9 +152,13 @@ service("ssh",
service("syslog-ng",
extra=["depend on file/var/log/syslog"])
if has('adm-only'):
vsftpd_ip = admip()
else:
vsftpd_ip = pubip()
service("vsftpd",
pidf="vsftpd/vsftpd",
extra=["if failed host %s port 21 protocol ftp timeout 30 seconds then restart" % pubip()])
extra=["if failed host %s port 21 protocol ftp timeout 30 seconds then restart" % vsftpd_ip])
service("vsftpd-federez",
extra=["if failed host 138.231.136.129 port 21 protocol ftp timeout 30 seconds then restart"])