systemctl enable does not enable alias names

Bug #1419318 reported by Zach Villers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

to reproduce;

1.sudo systemctl start sshd.service
2.sudo systemctl status sshd.service (shows enabled)
3.sudo systemctl enable sshd.service - errors with "Failed to execute operation: No such file or directory"

Expected behavior would be message that says the service is enabled.

Using Lubuntu 15.04 daily build in a VM. systemd 218-7.

ssh service does work after being started and persists after reboot.

Expected behavior for starting a service without enabling it is that the service would not persist after reboot.

Revision history for this message
Zach Villers (zachvatwork) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1419318/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Zach Villers (zachvatwork) wrote :

changed package to systemd

affects: ubuntu → systemd (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote :

As you see in "status", the actual name of that is "ssh.service", and "sshd" is just an Alias= name. As several units can have the same alias (e. g. in the case of "display-manager.service"), it is deliberate that you cannot enable aliases, but have to use the actual service name.

summary: - systemd error when enabling a service that is already started
+ systemctl enable does not enable alias names
Changed in systemd (Ubuntu):
importance: Undecided → Low
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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