diff --git a/scrutiny/CHANGELOG.md b/scrutiny/CHANGELOG.md index 694a61f4f..2ddb16617 100644 --- a/scrutiny/CHANGELOG.md +++ b/scrutiny/CHANGELOG.md @@ -1,6 +1,3 @@ -## v0.8.1-12 (16-08-2025) -- Replace s6-based shutdown with standard command to avoid s6-svwait error - ## v0.8.1-11 (15-08-2025) - Minor bugs fixed ## v0.8.1-10 (13-08-2025) diff --git a/scrutiny/config.json b/scrutiny/config.json index a4b384d30..46636cdbc 100644 --- a/scrutiny/config.json +++ b/scrutiny/config.json @@ -120,5 +120,5 @@ "slug": "scrutiny", "udev": true, "url": "https://github.com/AnalogJ/scrutiny", - "version": "v0.8.1-12" + "version": "v0.8.1-11" } diff --git a/scrutiny/rootfs/etc/services.d/nginx/finish b/scrutiny/rootfs/etc/services.d/nginx/finish index 5ca74f2bf..444240135 100644 --- a/scrutiny/rootfs/etc/services.d/nginx/finish +++ b/scrutiny/rootfs/etc/services.d/nginx/finish @@ -1,9 +1,8 @@ -#!/usr/bin/with-contenv bashio -# shellcheck shell=bash +#!/usr/bin/execlineb -S0 # ============================================================================== -# Stop the container when Nginx fails +# Take down the S6 supervision tree when Nginx fails # ============================================================================== -if [[ "$1" -ne 0 && "$1" -ne 256 ]]; then - bashio::log.error "Nginx exited with code $1" - kill -15 1 -fi +if { s6-test ${1} -ne 0 } +if { s6-test ${1} -ne 256 } + +s6-svscanctl -t /var/run/s6/services