From: Pascal Volk Date: Thu, 19 Nov 2009 06:32:54 +0000 (+0000) Subject: doc/dovecot-initd.sh added LSB-compliant info block. Updated base_dir detection. X-Git-Tag: 2.0.beta1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eab0980fe119fdbbd2615561ac8d09e9d69e2711;p=thirdparty%2Fdovecot%2Fcore.git doc/dovecot-initd.sh added LSB-compliant info block. Updated base_dir detection. --HG-- branch : HEAD --- diff --git a/doc/dovecot-initd.sh b/doc/dovecot-initd.sh index 707008327c..4b3ac96e3d 100644 --- a/doc/dovecot-initd.sh +++ b/doc/dovecot-initd.sh @@ -1,4 +1,14 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: dovecot +# Required-Start: $local_fs $syslog +# Required-Stop: $local_fs $syslog +# Should-Start: $time +# 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 # Example /etc/init.d/dovecot script. Change DAEMON if necessary. # License is public domain. @@ -8,7 +18,7 @@ DAEMON=/usr/local/sbin/dovecot test -x $DAEMON || exit 1 set -e -base_dir=`$DAEMON -a|grep '^base_dir: '|sed 's/^base_dir: //'` +base_dir=`$DAEMON -a|grep '^base_dir = '|sed 's/^base_dir = //'` pidfile=$base_dir/master.pid if test -f $pidfile; then