Bug 896670

Summary: 'systemctl enable' does not resolve aliases
Product: [Fedora] Fedora Reporter: Nicholas Schuetz <nick>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: johannbg, lnykryn, metherid, mhradile, msekleta, notting, plautrba, systemd-maint, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-06 17:20:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicholas Schuetz 2013-01-17 17:34:31 UTC
systemctl resolves the 'nfs' alias to 'nfs-server' when performing a status. (expected behavior)

# systemctl status nfs
nfs-server.service - NFS Server
	  Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
	  Active: active (exited) since Thu, 2013-01-17 11:06:29 CST; 17min ago
	Main PID: 970 (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/nfs-server.service

However, it does not resolve this alias when attempting to 'enable' the same service alias.

# systemctl enable nfs
Failed to issue method call: No such file or directory

Instead, you have to reference the proper service name like so

# systemctl enable nfs-server
ln -s '/usr/lib/systemd/system/nfs-server.service' '/etc/systemd/system/multi-user.target.wants/nfs-server.service'


In the future, this will likely cause confusion for customers upgrading to RHEL7 (ie systemd noobs).

Comment 1 Lennart Poettering 2013-02-14 19:05:45 UTC
*** Bug 911130 has been marked as a duplicate of this bug. ***

Comment 2 Lennart Poettering 2013-05-06 17:20:45 UTC

*** This bug has been marked as a duplicate of bug 955379 ***