diff options
Diffstat (limited to 'monit/dovecot.conf')
| -rw-r--r-- | monit/dovecot.conf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/monit/dovecot.conf b/monit/dovecot.conf new file mode 100644 index 0000000..3aab9e4 --- /dev/null +++ b/monit/dovecot.conf @@ -0,0 +1,13 @@ +check process dovecot with pidfile /var/run/dovecot/master.pid + GROUP mail + start program = "/etc/init.d/dovecot start" + stop program = "/etc/init.d/dovecot stop" + if failed host localhost port 993 type tcpssl sslauto protocol imap for 5 cycles then restart + if 3 restarts within 5 cycles then timeout + depends dovecot_init + depends dovecot_bin + +check file dovecot_init with path /etc/init.d/dovecot + GROUP mail +check file dovecot_bin with path /usr/sbin/dovecot + GROUP mail |
