[systemd-devel] Make systemctl is-enabled work for templated units

Michael Tremer michael.tremer at ipfire.org
Sun May 19 06:45:48 PDT 2013


Hello guys,

in this mail, you will find a patch which resolves the problem, that
'systemctl is-enabled' does not work for templated units.

See also https://bugs.freedesktop.org/show_bug.cgi?id=55318 for
reference.

Without this patch, systemctl is-enabled something at abc.service
returned "No such file or directory", because it was checked
if /usr/lib/systemd/system/something at abc.service, etc. existed,
which is obviously not the case.

If systemctl is-enabled is called for templated units, this
check should be omitted and it should be searched for symlinks
in the /etc paths right away.

I would like to request that this is merged to the systemd git tree.

Best,
-Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-systemctl-is-enabled-work-for-templated-units.patch
Type: text/x-patch
Size: 2981 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130519/1ff9e300/attachment.bin>


More information about the systemd-devel mailing list