From 513a1ffa94b51a3734327f54562af2b3459e4cff Mon Sep 17 00:00:00 2001 From: Pascal Volk Date: Fri, 2 Jul 2010 21:14:08 +0000 Subject: [PATCH] doc/dovecot-initd.sh: Updated base_dir detection. --HG-- branch : HEAD --- doc/dovecot-initd.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/dovecot-initd.sh b/doc/dovecot-initd.sh index 9214791d30..6f49bfb2f4 100644 --- a/doc/dovecot-initd.sh +++ b/doc/dovecot-initd.sh @@ -16,10 +16,13 @@ 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 -- 2.47.3