better reload log
This commit is contained in:
@@ -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)
|
||||
|
@@ -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})"
|
||||
|
@@ -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}
|
Reference in New Issue
Block a user