]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doc/dovecot-initd.sh: Updated base_dir detection.
authorPascal Volk <user@localhost.localdomain.org>
Fri, 2 Jul 2010 21:14:08 +0000 (21:14 +0000)
committerPascal Volk <user@localhost.localdomain.org>
Fri, 2 Jul 2010 21:14:08 +0000 (21:14 +0000)
--HG--
branch : HEAD

doc/dovecot-initd.sh

index 9214791d30a4b7c2c1c28c7ee756ba428618c142..6f49bfb2f4f450aed3c7b05bd943e8c86446a171 100644 (file)
 
 DAEMON=/usr/local/sbin/dovecot
 
+# Uncomment to allow Dovecot daemons to produce core dumps.
+#ulimit -c unlimited
+
 test -x $DAEMON || exit 1
 set -e
 
-base_dir=`$DAEMON -a|grep '^base_dir = '|sed 's/^base_dir = //'`
+base_dir=`$DAEMON config -h base_dir`
 pidfile=$base_dir/master.pid
 
 if test -f $pidfile; then