]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
init: Execute /etc/sysconfig/dovecot on init, if it exists
authorTom Sommer <tomsommer@users.noreply.github.com>
Thu, 12 Jan 2017 09:02:13 +0000 (10:02 +0100)
committerTimo Sirainen <tss@dovecot.fi>
Tue, 5 Sep 2017 12:51:11 +0000 (15:51 +0300)
Helps users set `ulimit`, `DAEMON` etc. without having to touch the init.d script.

doc/dovecot-initd.sh

index 6f49bfb2f4f450aed3c7b05bd943e8c86446a171..999f8d8995a11d59b31b134f89acc97d0c991760 100644 (file)
@@ -19,6 +19,8 @@ DAEMON=/usr/local/sbin/dovecot
 # Uncomment to allow Dovecot daemons to produce core dumps.
 #ulimit -c unlimited
 
+[ -e /etc/sysconfig/dovecot ] && . /etc/sysconfig/dovecot
+
 test -x $DAEMON || exit 1
 set -e