5
rootfs/etc/services.d/home-assistant/finish
Normal file
5
rootfs/etc/services.d/home-assistant/finish
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Take down the S6 supervision tree when Home Assistant fails
|
||||
# ==============================================================================
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
7
rootfs/etc/services.d/home-assistant/run
Normal file
7
rootfs/etc/services.d/home-assistant/run
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Start Home Assistant service
|
||||
# ==============================================================================
|
||||
cd /config || bashio::exit.nok "Can't find config folder!"
|
||||
|
||||
exec python3 -m homeassistant --config /config
|
||||
Reference in New Issue
Block a user