[opensuse] Can not enable syslog in 42.2 - Failed to execute operation: Too many levels of symbolic links
Hi, I get this: Minas-Anor:~ # rcsyslog status Usage: /sbin/rcsyslog {start|stop|status|try-restart|restart|force-reload|reload} ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled) Active: inactive (dead) Minas-Anor:~ # systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled) Active: inactive (dead) Minas-Anor:~ # systemctl enable syslog Failed to execute operation: Too many levels of symbolic links Minas-Anor:~ # systemctl start syslog Minas-Anor:~ # systemctl enable syslog Failed to execute operation: Too many levels of symbolic links Minas-Anor:~ # systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2016-12-22 14:01:16 CET; 55s ago Process: 3978 ExecStartPre=/usr/sbin/rsyslog-service-prepare (code=exited, status=0/SUCCESS) Main PID: 3986 (rsyslogd) Tasks: 5 (limit: 512) CGroup: /system.slice/rsyslog.service └─3986 /usr/sbin/rsyslogd -n Dec 22 14:01:16 Minas-Anor.Valinor systemd[1]: Starting System Logging Service... Dec 22 14:01:16 Minas-Anor.Valinor systemd[1]: Started System Logging Service. Minas-Anor:~ # -- Cheers/Saludos Carlos E. R. (testing openSUSE Leap 42.2, at Minas-Anor) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Dec 22, 2016 at 4:05 PM, Carlos E. R.
Minas-Anor:~ # systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled)
According to this output it *is* enabled. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-22 14:51, Andrei Borzenkov wrote:
On Thu, Dec 22, 2016 at 4:05 PM, Carlos E. R.
wrote: ... Minas-Anor:~ # systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled)
According to this output it *is* enabled.
Yes, I noticed that later. What then means the error message (see the subject line)? -- Cheers/Saludos Carlos E. R. (testing openSUSE Leap 42.2, at Minas-Anor) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Dec 22, 2016 at 5:03 PM, Carlos E. R.
On 2016-12-22 14:51, Andrei Borzenkov wrote:
On Thu, Dec 22, 2016 at 4:05 PM, Carlos E. R.
wrote: ... Minas-Anor:~ # systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled)
According to this output it *is* enabled.
Yes, I noticed that later. What then means the error message (see the subject line)?
syslog.service is alias that is enabled together with "primary unit" (rsyslog.service, syslog-ng.service etc) with Alias=syslog.service directive. What it tries to say, that you should enable/disable primary unit instead of alias. Current upstream (and proposed updated for TW) returns slightly more meaningful message, telling you that unit is a link; unfortunately nowhere in documentation will you find that you cannot enable/disable alias ... actually, current upstream systemd.unit(5) says the opposite "Alias names may be used in commands like enable, disable, start, stop, status, …, and in unit dependency directives Wants=, Requires=, Before=, After=, …, with the limitation that aliases specified through Alias= are only effective when the unit is enabled." Note "may be used with enable" ... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-22 15:43, Andrei Borzenkov wrote:
On Thu, Dec 22, 2016 at 5:03 PM, Carlos E. R. <> wrote:
On 2016-12-22 14:51, Andrei Borzenkov wrote:
On Thu, Dec 22, 2016 at 4:05 PM, Carlos E. R. <> wrote: ...
Minas-Anor:~ # systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled)
According to this output it *is* enabled.
Yes, I noticed that later. What then means the error message (see the subject line)?
syslog.service is alias that is enabled together with "primary unit" (rsyslog.service, syslog-ng.service etc) with Alias=syslog.service directive. What it tries to say, that you should enable/disable primary unit instead of alias.
Ah! I'll try to remember next time :-)
Current upstream (and proposed updated for TW) returns slightly more meaningful message, telling you that unit is a link; unfortunately nowhere in documentation will you find that you cannot enable/disable alias ... actually, current upstream systemd.unit(5) says the opposite
"Alias names may be used in commands like enable, disable, start, stop, status, …, and in unit dependency directives Wants=, Requires=, Before=, After=, …, with the limitation that aliases specified through Alias= are only effective when the unit is enabled."
Note "may be used with enable" ...
Ugh... :-) -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
participants (2)
-
Andrei Borzenkov
-
Carlos E. R.