[lxc-devel] [PATCH] Make systemd lxc.service use lxc-autostart

Michael H. Warfield mhw at WittsEnd.com
Thu May 1 15:46:54 UTC 2014


[PATCH] Make systemd lxc.service use lxc-autostart

Changes lxc.service to call lxc-autostart for starting and
stopping containers.

Signed-off-by: Michael H. Warfield <mhw at WittsEnd.com>
---
 config/init/systemd/lxc.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/init/systemd/lxc.service b/config/init/systemd/lxc.service
index aa20b91..4573702 100644
--- a/config/init/systemd/lxc.service
+++ b/config/init/systemd/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-start -a
+ExecStop=/usr/bin/lxc-start -s
 # Environment=BOOTUP=serial
 # Environment=CONSOLETYPE=serial
 StandardOutput=syslog
-- 
1.9.0


-- 
Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140501/579f8930/attachment.sig>


More information about the lxc-devel mailing list