Description of problem: freeradius doesn't start in fc15 due to /var/run being a tmpfs, as /var/run/radiusd as installed by the rpm doesn't exist after reboot. Version-Release number of selected component (if applicable): freeradius-2.1.11-2.fc15.x86_64 How reproducible: 100% Steps to Reproduce: 1. chkconfig radiusd on; reboot 2. 3. Actual results: ps -ef|grep radiusd shows it isn't running /var/log/radius/radius.log has this: Mon Oct 10 03:29:57 2011 : Info: Loaded virtual server <default> Mon Oct 10 03:29:57 2011 : Info: Loaded virtual server inner-tunnel Mon Oct 10 03:29:57 2011 : Error: Failed binding to /var/run/radiusd/radiusd.sock: No such file or directory Expected results: radiusd running Additional info: My workaround is to modify /etc/init.d/radiusd ... diff -c -r1.1 radiusd *** radiusd 2011/10/11 03:56:05 1.1 --- radiusd 2011/10/11 03:58:44 *************** *** 30,35 **** --- 30,40 ---- pidfile=${pidfile:=/var/run/$prog/$prog.pid} lockfile=${lockfile:=/var/lock/subsys/radiusd} + # added for fc15 + mkdir -p /var/run/$prog + chown radiusd:radiusd /var/run/$prog + # end add + start() { [ -x $exec ] || exit 5 [ -f $config ] || exit 6
Alerted by comments in a related report (amavisd-new, report 745337) it seems the common practice for fixing this type of issue is to add an entry to /etc/tmpfiles.d to the package, to cause creation of the necessary directories with the appropriate permissions. So, undoing my changes above, and adding the below as /etc/tmpfiles.d/freeradius.conf, solves the issue -- d /var/run/radiusd 755 radiusd radiusd -- Can somebody please update the freeradius package accordingly.
Please, try this package: https://admin.fedoraproject.org/updates/FEDORA-2011-13797
That package seems to have been released on Oct 3, before my report, and has no tmpfiles.d entries or changes to /etc/rc.d/init.d/radiusd in it. Or is the fix implemented somewhere else?
I just tested freeradius-2.1.12-1.fc15 from: https://admin.fedoraproject.org/updates/FEDORA-2011-13797 Same error: Error: Failed binding to /var/run/radiusd/radiusd.sock: No such file or directory /var/run is tmpfs so /var/run/radiusd should be created at boot (or startup) Solution from #1 works. Dunno if it's the right way to solve this. Thanks.
According to http://0pointer.de/public/systemd-man/tmpfiles.d.html Configuration file should be in /usr/lib/tmpfiles.d/*.conf (if I understand correctly, /etc is reserved for local admin conf changes) Packaging with spec is described here: http://fedoraproject.org/wiki/Packaging:Tmpfiles.d
F15 mounted /var/run as tmpfs which is wiped clean on a reboot thus /var/run/radiusd which is created by the RPM install is absent. Add /etc/tmpfiles.d/radiusd.conf to recreate directory on boot. fixed in freeradius-2.1.12-2.fc15
freeradius-2.1.12-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/freeradius-2.1.12-2.fc15
Package freeradius-2.1.12-2.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing freeradius-2.1.12-2.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-15252 then log in and leave karma (feedback).
freeradius-2.1.12-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.