I have an rsyslog with a configuration error. However: Telcontar:~ # systemctl restart rsyslog Telcontar:~ # It claims success, but it is not true, it fails seconds later:
Telcontar:~ # systemctl status rsyslog rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled) Active: failed (Result: start-limit) since Thu, 2013-06-13 23:48:23 CEST; 4s ago Process: 13783 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Process: 16495 ExecStart=/usr/sbin/rsyslogd -n $RSYSLOGD_PARAMS (code=exited, status=1/FAILURE) Process: 16491 ExecStartPre=/usr/sbin/rsyslog-service-prepare (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/rsyslog.service
Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Jun 13 23:48:23 Telcontar.valinor systemd[1]: Failed to start System Logging Service. Telcontar:~ #
journalctl -n says nothing different. Calling rsyslog says something else that is not in systemd log:
Telcontar:~ # rsyslogd rsyslogd: run failed with error -2207 (see rsyslog.h or try http://www.rsyslog.com/e/2207 to learn what that number means) Telcontar:~ #
Looking at the service call I see it uses the parameter "-n". ExecStart=/usr/sbin/rsyslogd -n $RSYSLOGD_PARAMS If I do, then I get this: which tells me the exact and useful error:
Telcontar:~ # /usr/sbin/rsyslogd -n rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 262: syntax error on token 'isequal' [try http://www.rsyslog.com/e/2207 ] rsyslogd: CONFIG ERROR: could not interpret master config file '/etc/rsyslog.conf'. [try http://www.rsyslog.com/e/2207 ] rsyslogd: run failed with error -2207 (see rsyslog.h or try http://www.rsyslog.com/e/2207 to learn what that number means) Telcontar:~ #
Why is not systemd logging this output? It has its own log system, it does not depend on syslog working... -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)