Package:  anubis
Version:  4.1+dfsg1-1
Severity: important
Tags:     patch
User:     [EMAIL PROTECTED]
Usertags: incorrect-dependency

I just checked the shutdown order in unstable on a machine with
dependency based boot sequencing enabled, and discovered that the
anubis script is stopped to late during shutdown.  The reason is that
it got wrong dependencies.  It need to depend on $remote_fs to make
sure /usr/ is mounted before it start, and that it is stopped before
sendsigs kill all daemons.

Here is a patch to solve it.

diff -ur anubis-4.1+dfsg1.orig/debian/init anubis-4.1+dfsg1/debian/init
--- anubis-4.1+dfsg1.orig/debian/init   2008-03-08 17:00:30.000000000 +0100
+++ anubis-4.1+dfsg1/debian/init        2008-03-08 17:02:24.000000000 +0100
@@ -22,8 +22,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          anubis
-# Required-Start:    $network $local_fs
-# Required-Stop:     $network $local_fs
+# Required-Start:    $network $remote_fs
+# Required-Stop:     $network $remote_fs
 # Should-Start:      $syslog
 # Should-Stop:       $syslog
 # Default-Start:     2 3 4 5

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]

Reply via email to