Bug#468135: postfix-gld: Please add LSB formatted dependency info in init.d script

2008-04-02 Thread Santiago Vila
One more question:

Is the proposed change of the type that upstream would accept?
(In other words, is this debian specific or the implementation is shared
across distributions?)

Thanks.



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



Bug#468135: postfix-gld: Please add LSB formatted dependency info in init.d script

2008-02-28 Thread Santiago Vila
On Wed, 27 Feb 2008, Petter Reinholdtsen wrote:

 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.

Simple question: Would this help to fix #294053 as well?

I would like to see MySQL being started before the gld daemon.



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



Bug#468135: postfix-gld: Please add LSB formatted dependency info in init.d script

2008-02-28 Thread Petter Reinholdtsen
[Santiago Vila]
 Simple question: Would this help to fix #294053 as well?
 
 I would like to see MySQL being started before the gld daemon.

It would make it easier to fix when using dependency based boot
sequencing, yes.  Your script would need 'should-start: mysql' or
similar to make sure it start after mysql if mysql is present.  That
is exactly the kind of problems I want to see fixed permanently in
Debian by switching to dependency based boot sequencing.

Happy hacking,
-- 
Petter Reinholdtsen



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



Bug#468135: postfix-gld: Please add LSB formatted dependency info in init.d script

2008-02-27 Thread Petter Reinholdtsen

Package:  postfix-gld
Version:  1.6-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 anacron 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 postfix-gld-1.7.orig/debian/gld.init postfix-gld-1.7/debian/gld.init
--- postfix-gld-1.7.orig/debian/gld.init2008-02-27 09:21:26.0 
+0100
+++ postfix-gld-1.7/debian/gld.init 2008-02-27 09:24:09.0 +0100
@@ -1,4 +1,14 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:  gld
+# Required-Start:$remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# X-Start-Before:postfix
+# X-Stop-After:  postfix
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
+
 set -e

 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

As the stop script do not seem to do much except killing the daemon,
that task might be better left to the sendsigs script in runlevel 0
and 6, to speed up shutdown.  If this is indeed the case, I recommend
removing 0 and 6 from the Default-Stop list.

Happy hacking,
--
Petter Reinholdtsen



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