[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-devel
Subject:    [oe] [meta-networking][PATCH] freeradius: fix daemon startup warnings
From:       "Yi Zhao" <yi.zhao () windriver ! com>
Date:       2022-09-29 7:56:11
Message-ID: 20220929075611.874168-1-yi.zhao () windriver ! com
[Download RAW message or body]

Fixes:
chown[1483]: /bin/chown: warning: '.' should be ':': 'radiusd.radiusd'
/etc/tmpfiles.d/radiusd.conf:2: Line references path below legacy directory \
/var/run/, updating /var/run/radiusd -> /run/radiusd

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../freeradius/files/radiusd-volatiles.conf                     | 2 +-
 .../recipes-connectivity/freeradius/files/radiusd.service       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf \
b/meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf index \
                fa6296297..f3619dddb 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf
+++ b/meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf
@@ -1,2 +1,2 @@
 d /var/log/radius  0755 radiusd radiusd -
-d /var/run/radiusd 0755 radiusd radiusd -
+d /run/radiusd     0755 radiusd radiusd -
diff --git a/meta-networking/recipes-connectivity/freeradius/files/radiusd.service \
b/meta-networking/recipes-connectivity/freeradius/files/radiusd.service index \
                2d766488e..37a2eb3d7 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/radiusd.service
+++ b/meta-networking/recipes-connectivity/freeradius/files/radiusd.service
@@ -5,7 +5,7 @@ After=syslog.target network.target
 [Service]
 Type=forking
 PIDFile=/run/radiusd/radiusd.pid
-ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd /run/radiusd
+ExecStartPre=-@BASE_BINDIR@/chown -R radiusd:radiusd /run/radiusd
 ExecStartPre=@SBINDIR@/radiusd -C
 ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb
 ExecReload=@SBINDIR@/radiusd -C
-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99002): https://lists.openembedded.org/g/openembedded-devel/message/99002
Mute This Topic: https://lists.openembedded.org/mt/93989946/4455120
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [openembedded-devel@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic