addon-phlex/phlex/rootfs/etc/services.d/nginx/run
2018-09-22 21:19:17 +02:00

13 lines
469 B
Text

#!/usr/bin/with-contenv bash
# ==============================================================================
# Community Hass.io Add-ons: Phlex
# Runs the NGINX daemon
# ==============================================================================
# shellcheck disable=SC1091
source /usr/lib/hassio-addons/base.sh
# Wait for PHP-FPM to become available
s6-svwait -u -t 5000 /var/run/s6/services/php-fpm
hass.log.info "Starting NGINX..."
exec nginx -g "daemon off;"