better reload log

This commit is contained in:
ElevenNotes
2024-10-18 10:45:50 +02:00
parent 0b475fd85f
commit 8d0f5da8ca
3 changed files with 3 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ volumes:
| `NGINX_DYNAMIC_RELOAD` | Enable reload of nginx on configuration changes in /nginx/etc (only on successful configuration test!) | |
# SOURCE
* [11notes/nginx](https://github.com/11notes/docker-nginx)
* [11notes/nginx:1.26.2](https://github.com/11notes/docker-nginx/tree/1.26.2)
# PARENT IMAGE
* [11notes/alpine:stable](https://hub.docker.com/r/11notes/alpine)

View File

@@ -10,7 +10,7 @@
if [ -z "${1}" ]; then
if [ ! -z ${NGINX_DYNAMIC_RELOAD} ]; then
elevenLogJSON info "enable dynamic reload"
/sbin/inotifyd /usr/local/bin/dynamic_reload.sh ${APP_ROOT}/etc:cdnym &
/sbin/inotifyd /usr/local/bin/reload.sh ${APP_ROOT}/etc:cdnym &
fi
elevenLogJSON info "starting ${APP_NAME} (${APP_VERSION})"

View File

@@ -1,4 +1,5 @@
#!/bin/ash
elevenLogJSON debug "inotifyd event: ${1}"
elevenLogJSON info "reloading config"
NGINX_DYNAMIC_RELOAD_LOG=${APP_ROOT}/run/reload.log
nginx -t &> ${NGINX_DYNAMIC_RELOAD_LOG}