[lxc-devel] lxc systemd unit file

Dwight Engen dwight.engen at oracle.com
Tue Dec 31 21:31:15 UTC 2013


Hi Mike,

When looking through the sytemd unit file you made with commit
87ff951e as I was doing the sysv init script, I was a bit confused
since there is no lxc-startup in libexec nor in the sources, at least
not that I could find :) Maybe that was a shell script that didn't get
added? Or the following patch might work as well:

diff --git a/src/lxc/lxc.service b/src/lxc/lxc.service
index aa20b91..722364d 100644
--- a/src/lxc/lxc.service
+++ b/src/lxc/lxc.service
@@ -6,8 +6,8 @@ After=syslog.target
 Type=oneshot
 RemainAfterExit=yes
 ExecStartPre=/usr/libexec/lxc/lxc-devsetup
-ExecStart=/usr/libexec/lxc/lxc-startup start
-ExecStop=/usr/libexec/lxc/lxc-startup stop
+ExecStart=/usr/bin/lxc-autostart
+ExecStop=/usr/bin/lxc-autostart -s
 # Environment=BOOTUP=serial
 # Environment=CONSOLETYPE=serial
 StandardOutput=syslog


More information about the lxc-devel mailing list