Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 543970

Summary: app-emulation/lxc-1.1.1 systemd start script uses wrong path (sbin), should be bin
Product: Gentoo Linux Reporter: Joachim Herb <joachim.herb>
Component: Current packagesAssignee: Markos Chandras (RETIRED) <hwoarang>
Status: RESOLVED FIXED    
Severity: normal CC: virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joachim Herb 2015-03-20 22:19:36 UTC
The systemd start script /usr/lib/systemd/system/lxc@.service uses a wrong path (sbin) for the lxc-(start|stop|restart) commands:

Incorrect:
[Service]
Restart=always
ExecStartPre=/usr/libexec/lxc/lxc-devsetup
ExecStart=/usr/sbin/lxc-start -n %i -F
ExecReload=/usr/sbin/lxc-restart -n %i
ExecStop=/usr/sbin/lxc-stop -n %i
Delegate=yes

Correct:
[Service]
Restart=always
ExecStartPre=/usr/libexec/lxc/lxc-devsetup
ExecStart=/usr/bin/lxc-start -n %i -F
ExecReload=/usr/bin/lxc-restart -n %i
ExecStop=/usr/bin/lxc-stop -n %i
Delegate=yes

Also this error message can be found in the journal log:
[/usr/lib64/systemd/system/lxc@.service:11] Unknown lvalue 'Delegate' in section 'Service'
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2015-03-21 09:28:42 UTC
The Delegate thing is not a real problem. It just needs a newer systemd. Otherwise it will do nothing so you can ignore that.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2015-03-21 10:38:53 UTC
+*lxc-1.1.0-r6 (21 Mar 2015)
+*lxc-1.1.1-r1 (21 Mar 2015)
+
+  21 Mar 2015; Markos Chandras <hwoarang@gentoo.org> +lxc-1.1.0-r6.ebuild,
+  +lxc-1.1.1-r1.ebuild, -lxc-1.1.0-r5.ebuild, -lxc-1.1.1.ebuild,
+  files/lxc_at.service.2:
+  Revbump to fix systemd file paths. Bug #543970
+