Hi!
> If this parameter is ommitted, rsyslog will use default,
> which is /dev/log. After rsyslog stop/restart, this node gets
> deleted. This breaks further syslog() calls on distros
> using systemd-journald when test performs cleanup, because
> rsyslog doesn't re-create /dev/log. Default distro rsyslog
> config is "/run/systemd/journal/syslog", so system ends
> up with missing /dev/log.
> 
> For example:
>   cp -f /etc/rsyslog.conf /etc/rsyslog.conf.backup
>   echo '$ModLoad imuxsock.so'  > /etc/rsyslog.conf
>   echo "*.crit            /var/log/messages"  >> /etc/rsyslog.conf
>   systemctl restart rsyslog
>   cp /etc/rsyslog.conf.backup /etc/rsyslog.conf
>   systemctl restart rsyslog # --> PROBLEM: /dev/log is now gone
> 
> This patch will include "$SystemLogSocketName" line from
> rsyslog configuration to rsyslog.conf defined by syslog* tests.

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?

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to