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)