| Summary: | LSB systemd inconsistency between busybox-syslogd and sysklogd | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Peter A. Bigot <pab> |
| Component: | core | Assignee: | Chen Qi <Qi.Chen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, liezhi.yang, meta.mr.watcher, meta.watcher, Qi.Chen, ross.burton, yi.zhao |
| Version: | 1.5 | ||
| Target Milestone: | 1.5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Peter A. Bigot
2013-08-28 20:33:07 UTC
As the service is named as 'busybox-sylog.service', I think we should explicitly use busybox in that service file. So, instead of using ExecStart=@base_sbindir@/syslogd -n $OPTIONS maybe we should use ExecStart=@busybox_exec_syslogd@ -n $OPTIONS And at do_install, we replace the @busybox_exec_syslogd@ with '/bin/busybox.nosuid syslogd' or '/bin/busybox syslod' according to whether we're splitting the busybox binary. //Chen Qi (In reply to comment #1) > As the service is named as 'busybox-sylog.service', I think we should > explicitly use busybox in that service file. > > So, instead of using > ExecStart=@base_sbindir@/syslogd -n $OPTIONS > maybe we should use > ExecStart=@busybox_exec_syslogd@ -n $OPTIONS > > And at do_install, we replace the @busybox_exec_syslogd@ with > '/bin/busybox.nosuid syslogd' or '/bin/busybox syslod' according to whether > we're splitting the busybox binary. > > //Chen Qi I agree this would be less confusing and might be worth doing, but it doesn't address the underlying issue: if update-alternatives selects sysklogd as the source for /sbin/syslogd, busybox's syslogd should not be started by systemd. I think the real fix requires adding syslogd systemd service management to the ua rules for syslogd. I also think this is going to require pretty advanced recipe-fu and I'm not there yet. Hi Ross, Are we going to use different syslog service providers in systemd according to which one provides the /sbin/syslogd, just as Peter suggested? Or we only use busybox's syslogd service? Best Regards, Chen Qi sysklogd package hasn't got systemd support. So I think in case of a systemd based system, we should weigh busybox's syslog and klogd utilities over the sysklogd package. Because by default, busybox has CONFIG_FEATURE_SYSTEMD enabled. Besides, as busybox has CONFIG_FEATURE_SYSLOGD_CFG enabled, it should have a configuration file '/etc/syslog.conf' in busybox-syslog package. //Chen Qi merged into poky/master: 101662d357adfb200c5b38b71494fced1fda5607 43510e5c775597fd78eab5f703e447fb238403f6 http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=45d18a1b6bcdc56d252b289d0d304b26799943b0 http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b7f6688f0700a1575037362af7a8ca94dccce471 |