###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process dovecot with pidfile /var/run/dovecot/master.pid
   group mail
   depends dovecot_init
   depends dovecot_bin
   start program = "/etc/init.d/dovecot start"
   stop program = "/etc/init.d/dovecot stop"
   if failed host mail.grimore.org port 993 type tcpssl sslauto protocol
     imap for 5 cycles then restart
#   if 3 restarts within 5 cycles then timeout
 
check file dovecot_init with path /etc/init.d/dovecot
   group mail
 
check file dovecot_bin with path /usr/sbin/dovecot
   group mail