Support new s6 overlay (#3630)

* Support new s6 overlay

* fix permission

* using bashio
This commit is contained in:
Pascal Vizeli 2022-05-13 18:07:16 +02:00 committed by GitHub
parent 1b8ad44833
commit 5297edb57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 8 deletions

0
rootfs/etc/cont-init.d/udev.sh Normal file → Executable file
View File

11
rootfs/etc/services.d/supervisor/finish Normal file → Executable file
View File

@ -1,8 +1,11 @@
#!/usr/bin/execlineb -S1
#!/usr/bin/env bashio
# ==============================================================================
# Take down the S6 supervision tree when Supervisor fails
# ==============================================================================
if { s6-test ${1} -ne 100 }
if { s6-test ${1} -ne 256 }
redirfd -w 2 /dev/null s6-svscanctl -t /var/run/s6/services
if [[ "$1" -ne 100 ]] && [[ "$1" -ne 256 ]]; then
bashio::log.warning "Halt Supervisor"
/run/s6/basedir/bin/halt
fi
bashio::log.info "Supervisor restart after closing"

0
rootfs/etc/services.d/supervisor/run Normal file → Executable file
View File

11
rootfs/etc/services.d/watchdog/finish Normal file → Executable file
View File

@ -1,8 +1,11 @@
#!/usr/bin/execlineb -S1
#!/usr/bin/env bashio
# ==============================================================================
# Take down the S6 supervision tree when Watchdog fails
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services
if [[ "$1" -ne 0 ]] && [[ "$1" -ne 256 ]]; then
bashio::log.warning "Halt Supervisor (Wuff)"
/run/s6/basedir/bin/halt
fi
bashio::log.info "Watchdog restart after closing"

0
rootfs/etc/services.d/watchdog/run Normal file → Executable file
View File