ha-3dprinter-addons/camera-mjpg-streamer/rootfs/etc/services.d/nginx/finish
2022-07-07 22:20:52 +02:00

10 lines
360 B
Plaintext

#!/usr/bin/execlineb -S0
# ==============================================================================
# Add-on: mjpg-streamer
# 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