[systemd-bugs] [Bug 53954] New: Not possible to enable user-specified instance when unit has alias
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 22 19:04:21 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=53954
Bug #: 53954
Summary: Not possible to enable user-specified instance when
unit has alias
Classification: Unclassified
Product: systemd
Version: unspecified
Platform: All
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: systemd-bugs at lists.freedesktop.org
ReportedBy: d at falconindy.com
QAContact: systemd-bugs at lists.freedesktop.org
v188 added the ability to enable a unit with an instance name. However, if the
unit has an Alias, it is not possible to enable this unit by any other template
name than the name defined by the Alias.
--> Example unit:
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target
[Service]
Type=forking
PIDFile=/run/dhcpcd-%I.pid
ExecStart=/sbin/dhcpcd -A -q -w %I
ExecStop=/sbin/dhcpcd -k %I
[Install]
Alias=multi-user.target.wants/dhcpcd at eth0.service
--> Expected behavior:
# systemctl enable dhcpcd at eth1.service
ln -s '/usr/lib/systemd/system/dhcpcd at .service'
'/etc/systemd/system/multi-user.target.wants/dhcpcd at eth1.service'
--> Actual behavior:
# systemctl enable dhcpcd at eth1.service
ln -s '/usr/lib/systemd/system/dhcpcd at .service'
'/etc/systemd/system/multi-user.target.wants/dhcpcd at eth0.service'
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the systemd-bugs
mailing list