Skip to contentSkip to conversation

freeradius: fix PIDFile path in radiusd.service file

PATCH New Trevor Gamblin 1 participant 1 message Oct 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 freeradius: fix PIDFile path in radiusd.service file

From: Trevor Gamblin <[email protected]>

radiusd.service references a legacy path for its PIDFile, which results in a warning at boot:

systemd[1]: /lib/systemd/system/radiusd.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/radiusd/radiusd.pid → /run/radiusd/radiusd.pid; please update the unit file accordingly.

Modify the recipe's radiusd.service file to use the correct path.

---
 .../recipes-connectivity/freeradius/files/radiusd.service     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-networking/recipes-connectivity/freeradius/files/radiusd.service +2 -2
index 8dae0df5b..2d766488e 100644
@@ -4,8 +4,8 @@ After=syslog.target network.target
 
 [Service]
 Type=forking
-PIDFile=@STATEDIR@/run/radiusd/radiusd.pid
-ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd @STATEDIR@/run/radiusd
+PIDFile=/run/radiusd/radiusd.pid
+ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd /run/radiusd
 ExecStartPre=@SBINDIR@/radiusd -C
 ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb
 ExecReload=@SBINDIR@/radiusd -C
Signature · 1 line
2.21.0