### BEGIN INIT INFO
# Provides: dovecot
# Required-Start: $local_fs $remote_fs $network $syslog $time
# Required-Stop: $local_fs $remote_fs $network $syslog
# Should-Start: postgresql mysql slapd winbind
# Should-Stop: postgresql mysql slapd winbind
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Dovecot init script
# Description: Init script for dovecot services
### END INIT INFO
# License is public domain.
# Uncomment to allow Dovecot daemons to produce core dumps.
#ulimit -c unlimited
# RedHat config
# Debian config
test -x $DAEMON || exit 1
set -e
if test -f $pidfile; then
else
fi
case "$1" in
echo -n "Starting Dovecot"
echo "."
;;
stop)
echo "Stopping Dovecot"
echo "."
else
echo "Dovecot is already stopped."
fi
;;
echo -n "Reloading Dovecot configuration"
echo "."
else
echo "Dovecot isn't running."
fi
;;
echo -n "Restarting Dovecot"
sleep 1
fi
echo "."
;;
*)
exit 1
;;
esac
exit 0