systemctl template units not enabled per docs

Bug #1808432 reported by Edward Gow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Invalid
Undecided
Unassigned

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@.service

and you try to enable it with systemctl per the docs

  sudo systemctl enable /<email address hidden>
or
  systemctl --user enable /<email address hidden>

you get the error

  Failed to execute operation: No such file or directory

What should happen is that systemctl fails to find /<email address hidden> so it then tries the template name /full_path_to/tmpl@.service, finds it, and creates a symlink to that template file.

Revision history for this message
Edward Gow (elgow) wrote :
Revision history for this message
Dan Streetman (ddstreet) wrote :

please reopen if this is still an issue

Changed in systemd (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.