mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 14:32:47 +00:00
rsyslog: get alias of syslog back
since upstream rsyslog commit7a671da74f, 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, refer83d5710f07Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
ed2e3e44fd
commit
4b181cc35a
@ -152,6 +152,10 @@ do_install_append() {
|
||||
install -d 0755 ${D}${sysconfdir}/rsyslog.d
|
||||
echo '$ModLoad mmjsonparse' >> ${D}${sysconfdir}/rsyslog.d/mmjsonparse.conf
|
||||
fi
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
||||
FILES_${PN} += "${bindir}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user