[lxc-devel] [lxc/master] Force lxc-instance to behave like a good Upstart client

AnrDaemon on Github lxc-bot at linuxcontainers.org
Fri Jun 24 03:20:19 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 465 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160624/ebd4b527/attachment.bin>
-------------- next part --------------
From abf28de1e6e9bddbca4b329dc277cddfc9c5b1e7 Mon Sep 17 00:00:00 2001
From: AnrDaemon <anrdaemon at freemail.ru>
Date: Fri, 24 Jun 2016 06:19:51 +0300
Subject: [PATCH] Force lxc-instance to behave like a good Upstart client

Remove unnecessary shell wrap around job start.
Force foreground execution to allow job monitoring and control.

Signed-off-by Andrey Repin <anrdaemon at yandex.ru>
---
 config/init/upstart/lxc-instance.conf | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/config/init/upstart/lxc-instance.conf b/config/init/upstart/lxc-instance.conf
index 58d045d..1c9c3e6 100644
--- a/config/init/upstart/lxc-instance.conf
+++ b/config/init/upstart/lxc-instance.conf
@@ -17,6 +17,4 @@ pre-start script
 	lxc-wait -s RUNNING -n $NAME -t 0 && { stop; exit 0; } || true
 end script
 
-script
-	exec lxc-start -n $NAME
-end script
+exec lxc-start -F -n $NAME


More information about the lxc-devel mailing list