Skip to content

Commit

Permalink
🔨 Improves S6 finish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Apr 13, 2019
1 parent 2ae79f3 commit 6967680
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions influxdb/rootfs/etc/services.d/chronograf/finish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Community Hass.io Add-ons: InfluxDB
# Take down the S6 supervision tree when Chronograf 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
4 changes: 2 additions & 2 deletions influxdb/rootfs/etc/services.d/influxdb/finish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Community Hass.io Add-ons: InfluxDB
# Take down the S6 supervision tree when InfluxDB 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
4 changes: 2 additions & 2 deletions influxdb/rootfs/etc/services.d/kapacitor/finish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Community Hass.io Add-ons: InfluxDB
# Take down the S6 supervision tree when Kapacitor 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
4 changes: 2 additions & 2 deletions influxdb/rootfs/etc/services.d/nginx/finish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Community Hass.io Add-ons: InfluxDB
# 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

0 comments on commit 6967680

Please sign in to comment.