Bug 85071

Summary: Failure to activate oneshot service with instance: Failed to execute operation: No such file or directory
Product: systemd Reporter: Andrei Amuraritei <sirdeiu>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: arthur.titeica, sirdeiu
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Andrei Amuraritei 2014-10-15 20:43:06 UTC
Fedora 21 x86_64 with:

rpm -qi systemd
Name        : systemd
Version     : 216
Release     : 4.fc21
Architecture: x86_64
Install Date: Wed 15 Oct 2014 09:16:26 PM EEST
Group       : Unspecified
Size        : 22165313
License     : LGPLv2+ and MIT and GPLv2+
Signature   : RSA/SHA256, Mon 13 Oct 2014 06:10:01 PM EEST, Key ID 89ad4e8795a43f54
Source RPM  : systemd-216-4.fc21.src.rpm
Build Date  : Sun 12 Oct 2014 05:05:21 PM EEST
Build Host  : buildvm-05.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.freedesktop.org/wiki/Software/systemd
Summary     : A System and Service Manager

If I try to activate a simple wake on lan service: 

[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target

[Service]
ExecStart=/sbin/ethtool -s %i wol g
Type=oneshot

[Install]
WantedBy=multi-user.target

with systemctl enable wol@enp2s0

I get this: Failed to execute operation: No such file or directory

This worked OK with Fedora 20 and systemd < 215(?).

Also if I try systemctl start wol@enp2s0, this works as expected.

Only the enable part which created the symlink to the wants target doesn't.
Comment 1 Zbigniew Jedrzejewski-Szmek 2015-01-06 05:34:20 UTC
This was indeed broken at some point, but got fixed in one of the updates. For distribution specific bugs (like in this case, something worked but got broken in one of the updates), it is better to file bugs on the distribution bug tracker, against a specific package version.

(Please reopen if I'm wrong and you can reproduce this with latest git.)
Comment 2 Andrei Amuraritei 2015-01-06 23:06:34 UTC
This was fixed indeed, now with Fedora 21. This bug report came as a suggestion from adamw on #fedora irc, that's why it was raised here directly.

Anyway I guess this can be marked as fixed now?

Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.