diff options
author | Kai Kang <kai.kang@windriver.com> | 2022-11-17 21:54:00 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-11-18 11:10:25 -0800 |
commit | 172c707251fd1a646b8e63854b5f4c04ff044ce3 (patch) | |
tree | 373fbf21da6986be9936d549a75ec67c02d90ef3 /meta-networking/recipes-connectivity/freeradius/files | |
parent | 5d5e8854718dab02c2737e3faf288f830a514841 (diff) | |
download | meta-openembedded-172c707251fd1a646b8e63854b5f4c04ff044ce3.tar.gz |
freeradius: fix multilib systemd service start failure
It fails to start radiusd.service from lib32-freeradius that the
configure directory is /etc/lib32-raddb rather than /etc/raddb. So add
an environment file to export a variable MLPREFIX for the service file
to make it start successfully.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/freeradius/files')
-rw-r--r-- | meta-networking/recipes-connectivity/freeradius/files/radiusd.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-networking/recipes-connectivity/freeradius/files/radiusd.service b/meta-networking/recipes-connectivity/freeradius/files/radiusd.service index 37a2eb3d7d..7969bfb690 100644 --- a/meta-networking/recipes-connectivity/freeradius/files/radiusd.service +++ b/meta-networking/recipes-connectivity/freeradius/files/radiusd.service @@ -4,10 +4,11 @@ After=syslog.target network.target [Service] Type=forking +EnvironmentFile=-/etc/sysconfig/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 +ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/${MLPREFIX}raddb ExecReload=@SBINDIR@/radiusd -C ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID |