From: Michael Brown <supermathie@gmail.com>
Date: Tue, 19 Feb 2019 21:04:20 +0000 (-0500)
Subject: boot: if container initialization steps fail, exit
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6be5513f9f1a28951d3578c83a76883bbb543c81;p=discourse_docker.git

boot: if container initialization steps fail, exit
---

diff --git a/image/base/boot b/image/base/boot
index 3e46a06..67fa5aa 100755
--- a/image/base/boot
+++ b/image/base/boot
@@ -17,7 +17,7 @@ shutdown() {
   exit
 }
 
-/etc/runit/1
+/etc/runit/1 || exit $?
 /etc/runit/2&
 RUNSVDIR=$!
 echo "Started runsvdir, PID is $RUNSVDIR"