home-assistant-addon/esphome-dev/rootfs/etc/services.d/esphome/finish

10 lines
375 B
Plaintext
Raw Normal View History

2019-02-13 22:05:11 +01:00
#!/usr/bin/execlineb -S0
# ==============================================================================
# Community Hass.io Add-ons: ESPHome
# Take down the S6 supervision tree when ESPHome fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services