1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-04-23 18:08:00 +01:00
Files
supervisor/rootfs/etc/services.d/watchdog/finish
Pascal Vizeli 5297edb57d Support new s6 overlay (#3630)
* Support new s6 overlay

* fix permission

* using bashio
2022-05-13 18:07:16 +02:00

12 lines
417 B
Plaintext
Executable File

#!/usr/bin/env bashio
# ==============================================================================
# Take down the S6 supervision tree when Watchdog fails
# ==============================================================================
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"