Package: ike Version: 2.0.3+dfsg-1 Severity: important Tags: patch User: [email protected] Usertags: incorrect-runlevels incorrect-dependency
With dependency based boot sequencing, I discovered what I believe is a bug in the init.d script. The script need files in /usr/ and should depend on $remote_fs, and also seem to use syslog and should depend on $syslog. The networking dependency is better written as the virtual facility $network. The script should stop in runlevel 1 instead of starting in it, to make sure it is properly restarted when switching from runlevel 1 to 2-5. <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 >. This patch should solve the issue. Without it, the script will start to early in the boot sequence, fail to stop controlled in runlevel 1 and to restart in runlevels 2-5. diff -ur ike-2.1.4+dfsg/script/iked ike-2.1.4+dfsg-pere/script/iked --- ike-2.1.4+dfsg/script/iked 2009-09-09 22:04:41.000000000 +0200 +++ ike-2.1.4+dfsg-pere/script/iked 2009-09-09 22:06:39.000000000 +0200 @@ -1,12 +1,10 @@ #! /bin/sh ### BEGIN INIT INFO # Provides: ike -# Required-Start: networking -# Required-Stop: networking -# Should-Start: -# Should-Stop: -# Default-Start: 1 2 3 4 5 -# Default-Stop: 0 6 +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Start the Shrew VPN daemon. # Description: The Shrew VPN client requires the ike demon # to run before being able to connect. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

