From d561f3b2215e4b50233432bf4762a426ec12ee7e Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Tue, 5 Aug 2014 23:18:56 -0400 Subject: [PATCH] rsyslog: use syslog as the script name of syslog-init Use syslog as the default symlink and INITSCRIPT_NAME just as sysklogd and syslog-ng did. (From meta-openembedded rev: c0945057ff7dd2562f07bb579032218139397729) Signed-off-by: Jackie Huang Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- .../meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meta-openembedded/meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb b/meta-openembedded/meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb index 3bb92fa..6ee571e 100644 --- a/meta-openembedded/meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb +++ b/meta-openembedded/meta-oe/recipes-extended/rsyslog/rsyslog_7.4.4.bb @@ -64,14 +64,14 @@ PACKAGECONFIG[gui] = "--enable-gui,--disable-gui,," do_install_append() { install -d "${D}${sysconfdir}/init.d" - install -m 755 ${WORKDIR}/initscript ${D}${sysconfdir}/init.d/rsyslogd + install -m 755 ${WORKDIR}/initscript ${D}${sysconfdir}/init.d/syslog.${BPN} install -m 644 ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf install -m 644 ${WORKDIR}/rsyslog.logrotate ${D}${sysconfdir}/logrotate.rsyslog } FILES_${PN} += "${bindir}" -INITSCRIPT_NAME = "rsyslogd" +INITSCRIPT_NAME = "syslog" INITSCRIPT_PARAMS = "defaults" # higher than sysklogd's 100 @@ -101,6 +101,5 @@ python () { pn = d.getVar('PN', True) sysconfdir = d.getVar('sysconfdir', True) d.appendVar('ALTERNATIVE_%s' % (pn), ' syslog-init') - d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslogd' % (sysconfdir)) - d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-init', '%s/init.d/rsyslogd' % (sysconfdir)) + d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslog' % (sysconfdir)) } -- 2.7.4