Hi! > > I've read this twice and I'm still unsure what happens. > > > > My guess is that on new enough RedHat all logging goes through systemd > > and the rsyslog configuration contains explicit option to create > > /dev/log for compatibility reasons? But if that is the problem why is > > the /dev/log missing after the configuration was restored and rsyslog > > restarted? > > /dev/log is created by systemd-journald. Distro rsyslog config is setup > to use /run/systemd/journal/syslog. When rsyslog is stopped/restarted > it deletes whatever socket was configured. > > This testcase doesn't configure any log socket explicitly in rsyslog > config. So rsyslog will use default, which is "/dev/log". Now > when you stop/restart rsyslog it deletes /dev/log and all applications > which use syslog(2) now fail to log anything. > > I think the way it works is that journald reads message from /dev/log > and for compatibility reasons it forwards it to /run/systemd/journal/syslog > where rsyslog can read and process it.
Ah, now it's clear to me. And the reason why this works in SUSE without any configuration is likely autodetection patch for rsyslog added as a result of this bug: https://bugzilla.novell.com/show_bug.cgi?id=747871 Anyway the patch only tries to preserve the configuration so this should not break anything, acked, but please consider rewriting the commit message a bit so it's a bit clearer what exactly happens, i.e. describe a bit better that rsyslog deletes the node and it's not recreated after the config is restored and rsyslog started again because the system configuration overrides the default value. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
