Bug 781744 - freeradius startup problem with systemd and pid file
Summary: freeradius startup problem with systemd and pid file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeradius
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: John Dennis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-14 20:09 UTC by Nathan G. Grennan
Modified: 2013-03-17 13:58 UTC (History)
3 users (show)

Fixed In Version: freeradius-2.1.12-3.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-15 20:51:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nathan G. Grennan 2012-01-14 20:09:20 UTC
Description of problem:
"systemctl start radiusd.service" hangs, and /var/log/messages says "systemd[1]: PID file /var/run/radiusd/radiusd.pid not readable (yet?) after start.". /lib/systemd/system/radiusd.service says "PIDFile=/var/run/radiusd/radiusd", but it is /var/run/radiusd/radiusd.pid on the filesystem.

I fixed it for myself by changing 
/lib/systemd/system/radiusd.service to say "PIDFile=/var/run/radiusd/radiusd.pid"


Version-Release number of selected component (if applicable):
freeradius-2.1.12-2.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install freeradius
2. systemctl start radiusd.service
3.
  
Actual results:
Service starts but systemctl hangs

Expected results:
Service starts but systemctl doesn't hang

Additional info:

Comment 1 John Dennis 2012-01-15 20:51:35 UTC
Thank you! Fixed in freeradius-2.1.12-3.fc16, should appear in updates-testing shortly. Consider adding positive karma to bohdi to get it pushed sooner.

Comment 2 Fedora Update System 2012-01-15 21:23:44 UTC
freeradius-2.1.12-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/freeradius-2.1.12-3.fc16

Comment 3 Fedora Update System 2012-01-23 22:02:24 UTC
freeradius-2.1.12-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Slava 2013-03-17 13:57:19 UTC
Issue still exist on F18 x86_64.


[root@ns2 raddb]# systemctl status radiusd.service
radiusd.service - FreeRADIUS high performance RADIUS server.
	  Loaded: loaded (/usr/lib/systemd/system/radiusd.service; enabled)
	  Active: active (running) since Sun 2013-03-17 09:53:30 EDT; 5s ago
	 Process: 1313 ExecStart=/usr/sbin/radiusd -d /etc/raddb (code=exited, status=0/SUCCESS)
	 Process: 1309 ExecStartPre=/usr/sbin/radiusd -C (code=exited, status=0/SUCCESS)
	 Process: 1307 ExecStartPre=/bin/chown -R radiusd:radiusd /var/run/radiusd/ (code=exited, status=0/SUCCESS)
	Main PID: 1315 (radiusd)
	  CGroup: name=systemd:/system/radiusd.service
		  └─1315 /usr/sbin/radiusd -d /etc/raddb

Mar 17 09:53:30 ns2.int.networklab.ca systemd[1]: radiusd.service: main process exited, code=exited, status=1/FAILURE
Mar 17 09:53:30 ns2.int.networklab.ca systemd[1]: Unit radiusd.service entered failed state
Mar 17 09:53:30 ns2.int.networklab.ca systemd[1]: Starting FreeRADIUS high performance RADIUS server....
Mar 17 09:53:30 ns2.int.networklab.ca systemd[1]: PID file /var/run/radiusd/radiusd.pid not readable (yet?) after start.
Mar 17 09:53:30 ns2.int.networklab.ca systemd[1]: Started FreeRADIUS high performance RADIUS server..

Comment 5 Slava 2013-03-17 13:58:14 UTC
[root@ns2 raddb]# rpm -qa | grep freeradius
freeradius-2.2.0-5.fc18.x86_64
freeradius-ldap-2.2.0-5.fc18.x86_64


Note You need to log in before you can comment on or make changes to this bug.