🔨 Rewrite Add-on to make use of S6 (#36)

Restructuring of the addon to make use of the S6 overlay to make it more robust.
This commit is contained in:
Gautham Varma K
2021-09-09 07:05:33 +05:30
committed by GitHub
parent 8a0d2dbfdc
commit 1afe905387
11 changed files with 132 additions and 101 deletions
@@ -0,0 +1,9 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Home Assistant Community Add-on: TVHeadend
# Take down the S6 supervision tree when crond fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services