]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doc/dovecot-initd.sh added LSB-compliant info block. Updated base_dir detection.
authorPascal Volk <user@localhost.localdomain.org>
Thu, 19 Nov 2009 06:32:54 +0000 (06:32 +0000)
committerPascal Volk <user@localhost.localdomain.org>
Thu, 19 Nov 2009 06:32:54 +0000 (06:32 +0000)
--HG--
branch : HEAD

doc/dovecot-initd.sh

index 707008327c070c95c43b5e60b569f975481d6389..4b3ac96e3d164ee5ef60174936aceb8997234095 100644 (file)
@@ -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