Package: freeradius Version: 1.1.3-1 Severity: important Tags: patch User: [email protected] Usertags: incorrect-dependency incorrect-provides
With dependency based boot sequencing, I discovered what I believe is a bug in the init.d script. It provide the same facility as the radiusd script included in the xradiusd package. Also, the script uses files in /usr/ but fail to depend on $remote_fs, and the daemon logs to syslog but do not depend on $syslog. The stop dependencies are completely missing. If you worry about other scripts depending on radiusd, the only script doing that in the Debian archive at the moment is openser. If its init.d script should handle any raidus server, I suspect it should depend on radiusd-livingston and d/yardradius as well. <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 service will start to early in the boot, and some syslog messages might be lost, and the package will fail to install if another package providing radiusd is already installed. diff -ur freeradius-2.0.4+dfsg/debian/freeradius.init freeradius-2.0.4+dfsg-pere/debian/freeradius.init --- freeradius-2.0.4+dfsg/debian/freeradius.init 2008-05-19 04:47:18.000000000 +0200 +++ freeradius-2.0.4+dfsg-pere/debian/freeradius.init 2009-08-16 22:45:40.000000000 +0200 @@ -2,10 +2,10 @@ # Start/stop the FreeRADIUS daemon. ### BEGIN INIT INFO -# Provides: radiusd -# Required-Start: $network +# Provides: freeradius +# Required-Start: $remote_fs $network $syslog # Should-Start: $time mysql ldap postgresql samba krb5-kdc -# Required-Stop: +# Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Radius Daemon Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

