🔨 Improves S6 finish scripts

This commit is contained in:
Franck Nijhof 2019-04-14 22:19:02 +02:00
parent 85090406be
commit 5b716764fa
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
# Community Hass.io Add-ons: Visual Studio Code
# Take down the S6 supervision tree when the code server fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View file

@ -3,7 +3,7 @@
# Community Hass.io Add-ons: Visual Studio Code
# Take down the S6 supervision tree when Nginx fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services