mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 08:05:57 +02:00
Spotbweb by @woutercoppens
This commit is contained in:
9
spotweb/rootfs/etc/services.d/nginx/finish
Normal file
9
spotweb/rootfs/etc/services.d/nginx/finish
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: spotweb
|
||||
# Take down the S6 supervision tree when Nginx fails
|
||||
# ==============================================================================
|
||||
if { s6-test ${1} -ne 0 }
|
||||
if { s6-test ${1} -ne 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
12
spotweb/rootfs/etc/services.d/nginx/run
Normal file
12
spotweb/rootfs/etc/services.d/nginx/run
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: spotweb
|
||||
# Runs the Nginx daemon
|
||||
# ==============================================================================
|
||||
|
||||
# Wait for PHP-FPM to become available
|
||||
bashio::net.wait_for 9000
|
||||
|
||||
bashio::log.info "Starting NGinx..."
|
||||
|
||||
nginx -c /etc/nginx/nginx.conf
|
||||
Reference in New Issue
Block a user