Andrei Borzenkov wrote:
On Thu, Mar 12, 2015 at 1:20 PM, Per Jessen <per@computer.org> wrote:
I am migrating some test systems from openSUSE 11.0 to 13.2 - systemd is in fact making things quite a lot easier.
However, I have a problem with getting syslog-ng started early enough. This is probably due to a DNS problem, which will have be looked at separately. However, due to this late starting I've noticed other daemons not being able to use syslog, not even once it is started.
In 13.2 standard syslog socket (/dev/log) is owned by journald which is started very early. Syslog daemons are supposed to listen on private socket and journald forwards messages to syslog over this private socket. This is by design.
Okay, thats' fine.
What exactly "other daemons not being able to use syslog" means?
Well, for instance - openvpn is started before syslog-ng, so the startup messages are not written to /var/log/messages. However, once syslog-ng is up and running, I would expect messages from openvpn to start appearing in /var/log/messages, but they don't. I see messages from openvpn with e.g. "systemctl status openvpn", but they are not in /var/log/messages. If I restart openvpn when syslog is running, the messages start being written to /var/log/messages.
Please also show syslog-ng.service definition.
<---------- # cat /etc/systemd/system/syslog-ng.service [Unit] Description=System Logging Service Requires=var-run.mount Requires=syslog.socket After=var-run.mount Conflicts=rsyslog.service syslogd.service [Service] Environment=SYSLOG_NG_PARAMS= ExecStartPre=/usr/bin/host service2.example.com ExecStartPre=/usr/sbin/syslog-ng-service-prepare EnvironmentFile=-/etc/sysconfig/syslog ExecStart=/usr/sbin/syslog-ng -F $SYSLOG_NG_PARAMS ExecReload=/bin/kill -HUP $MAINPID StandardOutput=null Restart=on-abort [Install] WantedBy=multi-user.target Alias=syslog.service ---------> I've added ExecStartPre=/usr/bin/host due to DNS problems, bug#921252. /Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org