Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543970 - app-emulation/lxc-1.1.1 systemd start script uses wrong path (sbin), should be bin
Summary: app-emulation/lxc-1.1.1 systemd start script uses wrong path (sbin), should b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-20 22:19 UTC by Joachim Herb
Modified: 2015-03-21 10:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
+