Bug 896670 - 'systemctl enable' does not resolve aliases
Summary: 'systemctl enable' does not resolve aliases
Keywords:
Status: CLOSED DUPLICATE of bug 955379
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-17 17:34 UTC by Nicholas Schuetz
Modified: 2013-05-06 17:20 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-06 17:20:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.