Red Hat Bugzilla – Bug 896670
'systemctl enable' does not resolve aliases
Last modified: 2013-05-06 13:20:45 EDT
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)
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).
*** Bug 911130 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 955379 ***