Package: squid Version: 2.6.5-2 Severity: important Tags: patch User: [email protected] Usertags: incorrect-dependency
With dependency based boot sequencing, I discovered what I believe is a bug in the init.d script. The dependencies are not correct. The daemon need /usr/ to be mounted, and thus need to depend on $remote_fs both during boot and shutdown. It also log to syslog, and thus should depend on $syslog. I just discovered this by luck, as the dependency on $named (which in bind9s case depend on $syslog), gave squid the correct boot sequence when both are installed together). When no $named package is installed, squid will start before the syslog implementation, and the first syslog messages logged might be lost. <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 init.d will start to early in the boot sequence on some systems. diff -ru squid-2.7.STABLE6/debian/squid.rc squid-2.7.STABLE6-pere/debian/squid.rc --- squid-2.7.STABLE6/debian/squid.rc 2009-08-14 14:23:48.000000000 +0200 +++ squid-2.7.STABLE6-pere/debian/squid.rc 2009-08-14 14:24:38.901019377 +0200 @@ -6,8 +6,8 @@ # ### BEGIN INIT INFO # Provides: squid -# Required-Start: $local_fs $network -# Required-Stop: $local_fs $network +# Required-Start: $remote_fs $network $syslog +# Required-Stop: $remote_fs $network $syslog # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

