diff --git a/fs/etc/s6-overlay/s6-rc.d/ingress-controller/finish b/fs/etc/s6-overlay/s6-rc.d/ingress-controller/finish index 4b9f31d2..bb4a7391 100644 --- a/fs/etc/s6-overlay/s6-rc.d/ingress-controller/finish +++ b/fs/etc/s6-overlay/s6-rc.d/ingress-controller/finish @@ -1,4 +1,9 @@ #!/command/with-contenv sh -echo "Ingress Controller exited with code ${1}, taking down the S6 supervision tree" -exec /run/s6/basedir/bin/halt \ No newline at end of file +if [ "${1}" -ne 0 ] && [ "${1}" -ne 256 ]; then + echo "Ingress Controller exited with fatal code ${1}, taking down the S6 supervision tree" + + exec /run/s6/basedir/bin/halt +fi + +echo "Ingress Controller exited with code ${1}, restarting..."