Skip to contentSkip to conversation

sssd: set pid path with /run

PATCH In review kai 2 participants 2 messages Jun 15, 2021 – Jun 20, 2021

lore
Share & tools
lore

kai

author
#0 lore raw

PATCH 1/1 sssd: set pid path with /run

From: Kai Kang <[email protected]>

/var/run is deprecated and set pid path with /run to store pid files for the SSSD.

---
 recipes-security/sssd/sssd_2.5.0.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
recipes-security/sssd/sssd_2.5.0.bb +3 -2
index 4c92519..c699527 100644
@@ -63,6 +63,7 @@ EXTRA_OECONF += " \
     --without-python2-bindings \
     --without-secrets \
     --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \
+    --with-pid-path=/run \
 "
 
 do_configure_prepend() {
@@ -88,8 +89,8 @@ do_install () {
         echo "d /var/log/sssd 0750 - - - -" > ${D}${sysconfdir}/tmpfiles.d/sss.conf
     fi
 
-    # Remove /var/run as it is created on startup
-    rm -rf ${D}${localstatedir}/run
+    # Remove /run as it is created on startup
+    rm -rf ${D}/run
 
     rm -f ${D}${systemd_system_unitdir}/sssd-secrets.*
 }
Signature · 1 line
2.17.1
#1 lore raw

series merged.

thanks

Quoted 33 lines · On 6/15/21 1:50 AM, [email protected] wrote:

From: Kai Kang <[email protected]>

/var/run is deprecated and set pid path with /run to store pid files for the SSSD.

---
 recipes-security/sssd/sssd_2.5.0.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
recipes-security/sssd/sssd_2.5.0.bb +3 -2
index 4c92519..c699527 100644
@@ -63,6 +63,7 @@ EXTRA_OECONF += " \
     --without-python2-bindings \
     --without-secrets \
     --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \
+    --with-pid-path=/run \
 "
 
 do_configure_prepend() {
@@ -88,8 +89,8 @@ do_install () {
         echo "d /var/log/sssd 0750 - - - -" > ${D}${sysconfdir}/tmpfiles.d/sss.conf
     fi
 
-    # Remove /var/run as it is created on startup
-    rm -rf ${D}${localstatedir}/run
+    # Remove /run as it is created on startup
+    rm -rf ${D}/run
 
     rm -f ${D}${systemd_system_unitdir}/sssd-secrets.*
 }