]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start containers in foreground when using the lxc@.service 1037/head
authorEvgeni Golov <evgeni@golov.de>
Thu, 2 Jun 2016 13:38:47 +0000 (15:38 +0200)
committerEvgeni Golov <evgeni@golov.de>
Thu, 2 Jun 2016 13:42:25 +0000 (15:42 +0200)
lxc-start started to default to daemonize the container when starting
this conflicts with type=simple of the systemd unit

call lxc-start with -F and thus force execution in foreground
that way we can feed the log to journald properly and keep type=simple

Debian-Bug: https://bugs.debian.org/826100
Signed-off-by: Evgeni Golov <evgeni@golov.de>
config/init/systemd/lxc@.service.in

index 190280e6b88a41cfeef158cdba13b90fc091cf83..ba8cc1b44a090d0745ba7daaf5304805a0623683 100644 (file)
@@ -9,7 +9,7 @@ Type=simple
 KillMode=mixed
 KillSignal=SIGPWR
 TimeoutStopSec=120s
-ExecStart=@BINDIR@/lxc-start -n %i
+ExecStart=@BINDIR@/lxc-start -F -n %i
 # Environment=BOOTUP=serial
 # Environment=CONSOLETYPE=serial
 Delegate=yes