mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
Spotbweb by @woutercoppens
This commit is contained in:
3
spotweb/rootfs/etc/services.d/cron/run
Normal file
3
spotweb/rootfs/etc/services.d/cron/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
/usr/sbin/crond -f -S -l 0
|
||||
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
|
||||
9
spotweb/rootfs/etc/services.d/phpfpm/finish
Normal file
9
spotweb/rootfs/etc/services.d/phpfpm/finish
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/execlineb -S0
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: Bookstack
|
||||
# Take down the S6 supervision tree when PHP FPM fails
|
||||
# ==============================================================================
|
||||
if -n { s6-test $# -ne 0 }
|
||||
if -n { s6-test ${1} -eq 256 }
|
||||
|
||||
s6-svscanctl -t /var/run/s6/services
|
||||
6
spotweb/rootfs/etc/services.d/phpfpm/run
Normal file
6
spotweb/rootfs/etc/services.d/phpfpm/run
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
bashio::log.info "Starting PHP-FPM..."
|
||||
|
||||
#/usr/sbin/php-fpm8 -F
|
||||
exec php-fpm8 --nodaemonize
|
||||
Reference in New Issue
Block a user