[Bug 1808432] Re: systemctl template units not enabled per docs
Dan Streetman
1808432 at bugs.launchpad.net
Wed Jun 30 22:16:39 UTC 2021
please reopen if this is still an issue
** Changed in: systemd (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1808432
Title:
systemctl template units not enabled per docs
Status in systemd package in Ubuntu:
Invalid
Bug description:
Report is for
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Package data is
Package: systemd
Architecture: amd64
Version: 229-4ubuntu21.10
Multi-Arch: foreign
No log file is applicable
The problem is that systemctl enable does not perform according to
documentation in enabling template unit files.
If a template unit file exists
/full_path_to/tmpl at .service
and you try to enable it with systemctl per the docs
sudo systemctl enable /full_path_to/tmpl at instance.service
or
systemctl --user enable /full_path_to/tmpl at instance.service
you get the error
Failed to execute operation: No such file or directory
What should happen is that systemctl fails to find
/full_path_to/tmpl at instance.service so it then tries the template name
/full_path_to/tmpl at .service, finds it, and creates a symlink to that
template file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1808432/+subscriptions
More information about the foundations-bugs
mailing list