[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:
parent
273a123c2c
commit
b46dc1dbdc
1 changed files with 5 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue