[systemd-devel] is-enabled and generated units

Andrei Borzenkov arvidjaar at gmail.com
Sun Jun 14 03:10:14 PDT 2015


В Sun, 14 Jun 2015 11:17:03 +0200
Igor Bukanov <igor at mir2.org> пишет:

> Hello,
> 
> I noticed that running `systemctl is-enabled foo.service` against a
> service written by a generator fails with a puzzling error message:
> 
> Failed to get unit file state for foo.service: No such file or directory
> 
> when I expected that the command succeeds and prints enabled-runtime
> as the unit was enabled through a target file
> /run/systemd/generator/multi-user.target.d/foo.conf containing:
> 
> [Unit]
> Wants=foo.service
> 
> Is it a bug?


Not really. systemctl enable|disable|is-enabled explicitly work on
links defined by [Install] section only.


More information about the systemd-devel mailing list