Hi Timo,
please find attached a patch for the init script in the doc directory.
* Added LSB-compliant info block (for insserv and friends)
* Updated base_dir detection (for v2.0 config output)
Regards,
Pascal
--
The trapper recommends today: [email protected]
# HG changeset patch
# User Pascal Volk <[email protected]>
# Date 1258612374 0
# Branch HEAD
# Node ID 73f85d9f7e42a9a57dca0403e3c6b6337fafda48
# Parent ce18bbd3e964894e55d438f15d98efda24e75cc1
doc/dovecot-initd.sh added LSB-compliant info block.
Updated base_dir detection.
diff -r ce18bbd3e964 -r 73f85d9f7e42 doc/dovecot-initd.sh
--- a/doc/dovecot-initd.sh Wed Nov 18 23:13:08 2009 -0500
+++ b/doc/dovecot-initd.sh Thu Nov 19 06:32:54 2009 +0000
@@ -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 @@
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