[oe-commits] [openembedded-core] 27/45: sysklogd: add a delay before klogd connect syslogd

git at git.openembedded.org git at git.openembedded.org
Fri Jan 10 11:03:14 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3ef5a7a2c4bfe9c10d0f5c2fbd8d498d58d6a9cf
Author: Yanfei Xu <yanfei.xu at windriver.com>
AuthorDate: Wed Jan 8 15:33:26 2020 +0800

    sysklogd: add a delay before klogd connect syslogd
    
    klogd and syslogd's type has been changed from "forking" to "simple"
    in service file used by systemd. It causes klogd will boot on the
    heels of syslogd in a very short time and result in a empty kern.log.
    
    Adding a delay before klogd connecting syslogd can solve this.
    --------------------------
    steps to reproduce:
        Bitbake core-image-minimal  with configuration as follow:
        MACHINE ??= "genericx86-64"
        DISTRO_FEATURES_append = " systemd"
        VIRTUAL-RUNTIME_init_manager = "systemd"
        VIRTUAL-RUNTIME_base-utils-syslog = "sysklogd"
    
    After your system booting successfully, you will find /var/log/kern.log
    is empty.
    -------------------------
    
    Signed-off-by: Yanfei Xu <yanfei.xu at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-extended/sysklogd/sysklogd.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc
index 774d23b..ff8188d 100644
--- a/meta/recipes-extended/sysklogd/sysklogd.inc
+++ b/meta/recipes-extended/sysklogd/sysklogd.inc
@@ -21,7 +21,7 @@ SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \
            "
 S = "${WORKDIR}/git"
 
-EXTRA_OECONF = "--with-systemd=${systemd_system_unitdir} --with-klogd --without-logger"
+EXTRA_OECONF = "--with-systemd=${systemd_system_unitdir} --with-klogd --with-klogd-delay=1 --without-logger"
 
 do_install_append () {
        install -d ${D}${sysconfdir}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list