summaryrefslogtreecommitdiff
path: root/bin/entrypoint.sh
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-26 09:23:10 -0600
committermo khan <mo@mokhan.ca>2025-05-26 09:23:10 -0600
commit1cfa3bc4ee938c372d3cb539169dc7a48a277667 (patch)
treee33dca55a27ad168c322c45fc87fd53309c88a8b /bin/entrypoint.sh
parent3724af53df29f7be507e9dc55adbc81e9b694cd6 (diff)
chore: use dumb-init to manage pid 1
Diffstat (limited to 'bin/entrypoint.sh')
-rwxr-xr-xbin/entrypoint.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh
index eb7dc07..a770286 100755
--- a/bin/entrypoint.sh
+++ b/bin/entrypoint.sh
@@ -1,8 +1,11 @@
-#!/bin/sh
-
+#!/usr/bin/dumb-init /bin/sh
+# shellcheck shell=sh
set -e
[ -n "$DEBUG" ] && set -x
cd "$(dirname "$0")/.."
-./bin/envoy.sh & ./bin/authzd & ./bin/sparkled
+
+./bin/envoy.sh & # launch envoy in background
+./bin/authzd & # launch authzd in background
+./bin/sparkled # launch sparkled in foreground