mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 16:28:58 +00:00
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. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
80310a3480
commit
c0945057ff
@ -64,14 +64,14 @@ PACKAGECONFIG[gui] = "--enable-gui,--disable-gui,,"
|
|||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d "${D}${sysconfdir}/init.d"
|
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.conf ${D}${sysconfdir}/rsyslog.conf
|
||||||
install -m 644 ${WORKDIR}/rsyslog.logrotate ${D}${sysconfdir}/logrotate.rsyslog
|
install -m 644 ${WORKDIR}/rsyslog.logrotate ${D}${sysconfdir}/logrotate.rsyslog
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${bindir}"
|
FILES_${PN} += "${bindir}"
|
||||||
|
|
||||||
INITSCRIPT_NAME = "rsyslogd"
|
INITSCRIPT_NAME = "syslog"
|
||||||
INITSCRIPT_PARAMS = "defaults"
|
INITSCRIPT_PARAMS = "defaults"
|
||||||
|
|
||||||
# higher than sysklogd's 100
|
# higher than sysklogd's 100
|
||||||
@ -101,6 +101,5 @@ python () {
|
|||||||
pn = d.getVar('PN', True)
|
pn = d.getVar('PN', True)
|
||||||
sysconfdir = d.getVar('sysconfdir', True)
|
sysconfdir = d.getVar('sysconfdir', True)
|
||||||
d.appendVar('ALTERNATIVE_%s' % (pn), ' syslog-init')
|
d.appendVar('ALTERNATIVE_%s' % (pn), ' syslog-init')
|
||||||
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslogd' % (sysconfdir))
|
d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslog' % (sysconfdir))
|
||||||
d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-init', '%s/init.d/rsyslogd' % (sysconfdir))
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user