Skip to contentSkip to conversation

rsyslog: get alias of syslog back

PATCH Changqing Li 2 participants 2 messages Jul 13, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi, Khem

I noticed this patch is on next branch,  but this patch have problem with sysV,

I need to send a V2 later.  Please help to revert it.  Thanks and sorry for troubling you.

Quoted 33 lines · Changqing Li

From: Changqing Li <[email protected]>

since upstream rsyslog commit
https://github.com/rsyslog/rsyslog/pull/4317/commits/7a671da74f78047b3fd0eb65203f045de28cec0f
, Alias=syslog.service is removed from service file, which will make systemctl restart syslog fail since Unit syslog.service not found when we set rsyslog to default syslog.

And upstream have change the solution about pull 4317, so during next upgrade, we need to add our own rsyslog.service, refer
https://github.com/rgerhards/rsyslog/commit/83d5710f074b34263322cd53fa1112aafd25b985

---
  meta-oe/recipes-extended/rsyslog/rsyslog_8.2006.0.bb | 3 +++
  1 file changed, 3 insertions(+)
meta-oe/recipes-extended/rsyslog/rsyslog_8.2006.0.bb +3 -0
index ff6699509..263a86e5c 100644
@@ -152,6 +152,9 @@ do_install_append() {
          install -d 0755 ${D}${sysconfdir}/rsyslog.d
          echo '$ModLoad mmjsonparse' >> ${D}${sysconfdir}/rsyslog.d/mmjsonparse.conf
      fi
+
+    sed -i -e "s#;Requires=syslog.socket#Requires=syslog.socket#g" ${D}${systemd_system_unitdir}/rsyslog.service
+    sed -i -e "s#;Alias=syslog.service#Alias=syslog.service#g" ${D}${systemd_system_unitdir}/rsyslog.service
  }
 
  FILES_${PN} += "${bindir}"
#2 lore raw

thanks, yes I have seen it break world builds I have removed it

Quoted 43 lines · Changqing Li

Hi, Khem

I noticed this patch is on next branch, but this patch have problem with sysV,

I need to send a V2 later. Please help to revert it. Thanks and sorry for troubling you.

On 7/10/20 5:07 PM, Changqing Li wrote:

From: Changqing Li <[email protected]>

since upstream rsyslog commit
https://github.com/rsyslog/rsyslog/pull/4317/commits/7a671da74f78047b3fd0eb65203f045de28cec0f
, Alias=syslog.service is removed from service file, which will make systemctl restart syslog fail since Unit syslog.service not found when we set rsyslog to default syslog.

And upstream have change the solution about pull 4317, so during next upgrade, we need to add our own rsyslog.service, refer
https://github.com/rgerhards/rsyslog/commit/83d5710f074b34263322cd53fa1112aafd25b985

---
 meta-oe/recipes-extended/rsyslog/rsyslog_8.2006.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-extended/rsyslog/rsyslog_8.2006.0.bb +3 -0
index ff6699509..263a86e5c 100644
@@ -152,6 +152,9 @@ do_install_append() {
         install -d 0755 ${D}${sysconfdir}/rsyslog.d
         echo '$ModLoad mmjsonparse' >> ${D}${sysconfdir}/rsyslog.d/mmjsonparse.conf
     fi
+
+    sed -i -e "s#;Requires=syslog.socket#Requires=syslog.socket#g" ${D}${systemd_system_unitdir}/rsyslog.service
+    sed -i -e "s#;Alias=syslog.service#Alias=syslog.service#g" ${D}${systemd_system_unitdir}/rsyslog.service
 }
 
 FILES_${PN} += "${bindir}"