Package:  sysklogd
Version:  1.4.1-17
Severity: wishlist
Tags:     patch

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 sysklogd and klogd init.d script would make it possible for me to
use this information to check the current sequence and speed up the
debian boot.

<URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html>
documents the LSB header format.

Here is a patch to document the dependencies of sysklogd and klogd.

As far as I can tell, sysklogd only need the local file system and
should have a working network if network is enabled, and klogd only
depend on a working syslog daemon.  Both services should be running
for all runlevels except 0 (halt) and 6 (reboot).  The patch reflect
these findings.

diff -ur sysklogd-1.4.1/debian/rc sysklogd-1.4.1-pere/debian/rc
--- sysklogd-1.4.1/debian/rc    Tue Aug 23 14:38:21 2005
+++ sysklogd-1.4.1-pere/debian/rc       Tue Aug 23 14:52:35 2005
@@ -1,5 +1,16 @@
 #! /bin/sh
-# /etc/init.d/sysklogd: start the system log daemon.
+### BEGIN INIT INFO
+# Provides:          sysklogd syslog
+# Required-Start:    $local_fs
+# Required-Stop:     $local_fs
+# Should-Start:      $network
+# Should-Stop:       $network
+# Default-Start:     S 1 2 3 4 5
+# Default-Stop:      0 6
+# Short-Description: start the system log daemon.
+# Description:       receive syslog messages and store them to disk or
+#                    send them off to other syslog serviers.
+### END INIT INFO

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

diff -ur sysklogd-1.4.1/debian/rc.klogd sysklogd-1.4.1-pere/debian/rc.klogd
--- sysklogd-1.4.1/debian/rc.klogd      Tue Aug 23 14:38:21 2005
+++ sysklogd-1.4.1-pere/debian/rc.klogd Tue Aug 23 14:42:23 2005
@@ -1,5 +1,13 @@
 #! /bin/sh
-# /etc/init.d/klogd: start the kernel log daemon.
+### BEGIN INIT INFO
+# Provides:          klogd
+# Required-Start:    $syslog
+# Required-Stop:     $syslog
+# Default-Start:     S 1 2 3 4 5
+# Default-Stop:      0 6
+# Short-Description: start the kernel log daemon.
+# Description:       reads kernel messages and pass them on to syslog.
+### END INIT INFO

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



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

Reply via email to