addon-glances/glances/rootfs/etc/services.d/nginx/finish
2019-01-13 14:09:38 +01:00

10 lines
421 B
Text

#!/usr/bin/execlineb -S0
# ==============================================================================
# Community Hass.io Add-ons: Glances
# Take down the S6 supervision tree when the nginx daemon fails
# ==============================================================================
# Disabled to allow for some testing
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services