Bug#458433: courier: Please add LSB formatted dependency info in init.d script

2008-01-03 Thread Stefan Hornburg

Petter Reinholdtsen wrote:

Package:  courier-imap courier-imap-ssl courier-ldap courier-mlm courier-mta 
courier-mta-ssl courier-pcp courier-pop courier-pop-ssl sqwebmail
Version:  0.47-1
Tags: patch
User: [EMAIL PROTECTED]
Usertags: missing-dependency

To be able to check boot script order, and also to be able to start
boot scripts in parallel, it is important to know the dependencies of
the various boot scripts.  The Linux Software Base specifies a init.d
header file format useful for this purpose, and adding such header to
the init.d script would make it possible for me to use this
information to check the current sequence and to speed up the debian
boot.

I am working on a system to update the boot sequence based on these
dependencies, and would like see this as the default in Lenny.
Because of this, it is nice if the dependencies was updated quickly.

URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html
documents the LSB header format.  Some debian notes are available from
URL:http://wiki.debian.org/LSBInitScripts.

Here is a patch to document the dependencies.  I hope this is correct.


Thanks for the patch. All Courier daemons rely on the courier-authdaemon to be 
present.
Can I just put courier-authdaemon into the Required-Start section ?
Also is there a possibility to check/verify these settings with a program or 
script ?

Regards
Racke

--
LinuXia Systems = http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP = http://www.icdevgroup.org/
Interchange Development Team




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#458433: courier: Please add LSB formatted dependency info in init.d script

2008-01-03 Thread Petter Reinholdtsen
[Stefan Hornburg]
 Thanks for the patch. All Courier daemons rely on the
 courier-authdaemon to be present.  Can I just put courier-authdaemon
 into the Required-Start section ?

Yes.  It it should be possible to install the packages without the
courier-authdaemon script present, it should instead go into the
should-start section.  And it should probably also go in the
required-stop or should-stop section, if courier-authdaemon should be
stopped after the Courier daemons.

 Also is there a possibility to check/verify these settings with a
 program or script ?

Yes.  Install insserv from unstable and run
/usr/share/insserv/check-initd-order.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#458433: courier: Please add LSB formatted dependency info in init.d script

2007-12-31 Thread Petter Reinholdtsen

Package:  courier-imap courier-imap-ssl courier-ldap courier-mlm courier-mta 
courier-mta-ssl courier-pcp courier-pop courier-pop-ssl sqwebmail
Version:  0.47-1
Tags: patch
User: [EMAIL PROTECTED]
Usertags: missing-dependency

To be able to check boot script order, and also to be able to start
boot scripts in parallel, it is important to know the dependencies of
the various boot scripts.  The Linux Software Base specifies a init.d
header file format useful for this purpose, and adding such header to
the init.d script would make it possible for me to use this
information to check the current sequence and to speed up the debian
boot.

I am working on a system to update the boot sequence based on these
dependencies, and would like see this as the default in Lenny.
Because of this, it is nice if the dependencies was updated quickly.

URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html
documents the LSB header format.  Some debian notes are available from
URL:http://wiki.debian.org/LSBInitScripts.

Here is a patch to document the dependencies.  I hope this is correct.

diff -ur courier-0.58.0.orig/debian/courier-imap.init 
courier-0.58.0/debian/courier-imap.init
--- courier-0.58.0.orig/debian/courier-imap.init2007-12-31 
11:04:07.0 +0100
+++ courier-0.58.0/debian/courier-imap.init 2007-12-31 11:11:39.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/bash -e
+### BEGIN INIT INFO
+# Provides:  courier-imap
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
 
 prefix=/usr
 exec_prefix=${prefix}
diff -ur courier-0.58.0.orig/debian/courier-imap-ssl.init 
courier-0.58.0/debian/courier-imap-ssl.init
--- courier-0.58.0.orig/debian/courier-imap-ssl.init2007-12-31 
11:04:07.0 +0100
+++ courier-0.58.0/debian/courier-imap-ssl.init 2007-12-31 11:11:33.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/bash -e
+### BEGIN INIT INFO
+# Provides:  courier-imap-ssl
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
 
 prefix=/usr
 exec_prefix=${prefix}
diff -ur courier-0.58.0.orig/debian/courier-ldap.init 
courier-0.58.0/debian/courier-ldap.init
--- courier-0.58.0.orig/debian/courier-ldap.init2007-12-31 
11:04:07.0 +0100
+++ courier-0.58.0/debian/courier-ldap.init 2007-12-31 11:11:23.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/sh -e
+### BEGIN INIT INFO
+# Provides:  courier-ldap
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
 #
 # Copyright 2002,2006 by Stefan Hornburg (Racke) [EMAIL PROTECTED]
 #
diff -ur courier-0.58.0.orig/debian/courier-mlm.init 
courier-0.58.0/debian/courier-mlm.init
--- courier-0.58.0.orig/debian/courier-mlm.init 2007-12-31 11:04:07.0 
+0100
+++ courier-0.58.0/debian/courier-mlm.init  2007-12-31 11:11:15.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/sh
+### BEGIN INIT INFO
+# Provides:  courier-mlm
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
 #
 # Copyright 2007 by Stefan Hornburg (Racke) [EMAIL PROTECTED]
 #
diff -ur courier-0.58.0.orig/debian/courier-mta.init 
courier-0.58.0/debian/courier-mta.init
--- courier-0.58.0.orig/debian/courier-mta.init 2007-12-31 11:04:07.0 
+0100
+++ courier-0.58.0/debian/courier-mta.init  2007-12-31 11:11:05.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/sh -e
+### BEGIN INIT INFO
+# Provides:  courier-mta
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
 
 prefix=/usr
 exec_prefix=${prefix}
diff -ur courier-0.58.0.orig/debian/courier-mta-ssl.init 
courier-0.58.0/debian/courier-mta-ssl.init
--- courier-0.58.0.orig/debian/courier-mta-ssl.init 2007-12-31 
11:04:07.0 +0100
+++ courier-0.58.0/debian/courier-mta-ssl.init  2007-12-31 11:10:58.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/sh -e
+### BEGIN INIT INFO
+# Provides:  courier-mta-ssl
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
 
 sysconfdir=/etc/courier
 sbindir=/usr/sbin
diff -ur courier-0.58.0.orig/debian/courier-pcp.init 
courier-0.58.0/debian/courier-pcp.init
--- courier-0.58.0.orig/debian/courier-pcp.init 2007-12-31 11:04:07.0 
+0100
+++ courier-0.58.0/debian/courier-pcp.init  2007-12-31 11:10:47.0 
+0100
@@ -1,4 +1,11 @@
 #! /bin/sh -e
+### BEGIN INIT INFO
+# Provides:  courier-pcp
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+#