mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 02:31:27 +00:00
freeradius: fix PIDFile path in radiusd.service file
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. Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -4,8 +4,8 @@ After=syslog.target network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=@STATEDIR@/run/radiusd/radiusd.pid
|
PIDFile=/run/radiusd/radiusd.pid
|
||||||
ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd @STATEDIR@/run/radiusd
|
ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd /run/radiusd
|
||||||
ExecStartPre=@SBINDIR@/radiusd -C
|
ExecStartPre=@SBINDIR@/radiusd -C
|
||||||
ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb
|
ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb
|
||||||
ExecReload=@SBINDIR@/radiusd -C
|
ExecReload=@SBINDIR@/radiusd -C
|
||||||
|
|||||||
Reference in New Issue
Block a user