esphome/esphomeyaml-edge/rootfs/etc/services.d/nginx/finish

10 lines
377 B
Text
Raw Normal View History

2019-01-06 19:38:23 +01:00
#!/usr/bin/execlineb -S0
# ==============================================================================
# Community Hass.io Add-ons: esphomeyaml
# Take down the S6 supervision tree when NGINX fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services