Bug 83110 - systemctl enable does not work for template units with no instance specified
Summary: systemctl enable does not work for template units with no instance specified
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 20:07 UTC by Ivan Shapovalov
Modified: 2016-06-07 13:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ivan Shapovalov 2014-08-26 20:07:06 UTC
Given a templated unit, sometimes it can make sense to enable it with empty instance.

Actually, this seems to be a regression.

Example of bug:

$ cat .config/systemd/user/compton@.service 
.include need-session@.service

[Unit]
Description=Compton X11 compositor for session %I
Documentation=man:compton(1)

[Service]
Type=forking
ExecStart=/usr/bin/compton -f -b

[Install]
WantedBy=graphic@.target

$ systemctl --user disable compton@
Removed symlink /home/intelfx/.config/systemd/user/graphic@.target.wants/compton@.service.

$ systemctl --user enable compton@
<empty output>

Expected reaction:
- symlink created again
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-08-27 01:39:35 UTC
Indeed, this seems to be regression.
Comment 2 Lennart Poettering 2016-06-07 13:05:30 UTC
This should work again. if it does not, please file a new bug on github! Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.