Package: anon-proxy Version: 00.05.38+20080123-1 Severity: important Tags: patch User: [email protected] Usertags: incorrect-dependency incorrect-runlevels
With dependency based boot sequencing, I discovered what I believe is a bug in the init.d scripts of this package. The list of runlevels to start and stop in is incomplete. The script should start in runlevel 4, and for runlevel 1 to behave as expected, I believe it should stop there. Also, the dependencies are incomplete. The script need files in /usr/ and should depend on $remote_fs. The program logs to syslog, and thus $syslog shold be a dependency too. This patch implement the proposed change. Changes to the postinst to make sure the missing symlinks are added in runlevel 1 and 4 is also needed. Without it, the script will fail to restart when switching from runlevel 1 to 2-5, and start before syslog is available, which might lead to lost syslog messages. diff -ur anon-proxy-00.05.38+20081230/debian/anon-proxy.init anon-proxy-00.05.38+20081230-pere/debian/anon-proxy.init --- anon-proxy-00.05.38+20081230/debian/anon-proxy.init 2009-08-31 08:23:13.000000000 +0200 +++ anon-proxy-00.05.38+20081230-pere/debian/anon-proxy.init 2009-08-31 08:24:09.000000000 +0200 @@ -13,10 +13,10 @@ ### BEGIN INIT INFO # Provides: anon-proxy -# Required-Start: $network -# Required-Stop: -# Default-Start: 2 3 5 -# Default-Stop: 0 6 +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Starts the anon-proxy mix # Description: Starts the anon-proxy mix ### END INIT INFO Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

