File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ ENV RUN_DEPS \
2525ENV MY_USER=nginx
2626ENV MY_GROUP=nginx
2727ENV HTTPD_START="/usr/sbin/nginx"
28- ENV HTTPD_RELOAD="nginx -s reload "
28+ ENV HTTPD_RELOAD="nginx -s stop "
2929
3030
3131# ##
Original file line number Diff line number Diff line change @@ -29,8 +29,11 @@ supervisord_create() {
2929 echo
3030 echo " [program:httpd]"
3131 echo " command=${httpd_command} "
32- echo " autostart=false"
33- echo " autorestart=false"
32+ echo " priority=1"
33+ echo " autostart=true"
34+ echo " startretries=100"
35+ echo " startsecs=1"
36+ echo " autorestart=true"
3437 echo " stdout_logfile=/dev/stdout"
3538 echo " stdout_logfile_maxbytes=0"
3639 echo " stderr_logfile=/dev/stderr"
@@ -40,6 +43,8 @@ supervisord_create() {
4043 echo
4144 echo " [program:watcherd]"
4245 echo " command=${watcherd_command} "
46+ echo " priority=999"
47+ echo " autostart=true"
4348 echo " autorestart=false"
4449 echo " stdout_logfile=/dev/stdout"
4550 echo " stdout_logfile_maxbytes=0"
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ CA_CRT=/ca/devilbox-ca.crt
2323CONFIG_DIR=" /docker-entrypoint.d"
2424
2525
26+ # Wait this many seconds to start watcherd after httpd has been started
27+ WATCHERD_STARTUP_DELAY=" 3"
28+
29+
2630# ##
2731# ## Source libs
2832# ##
@@ -224,7 +228,7 @@ if [ "${MASS_VHOST_ENABLE}" -eq "1" ]; then
224228
225229 supervisord_create \
226230 " ${HTTPD_START} " \
227- " watcherd -v -p /shared/httpd -a \" ${watcherd_add} \" -d \" ${watcherd_del} \" -t \" ${watcherd_tri} \" " \
231+ " bash -c 'sleep ${WATCHERD_STARTUP_DELAY} && exec watcherd -v -p /shared/httpd -a \" ${watcherd_add} \" -d \" ${watcherd_del} \" -t \" ${watcherd_tri} \" ' " \
228232 " /etc/supervisord.conf"
229233
230234 log " info" " Starting supervisord: $( supervisord -v) " " ${DEBUG_LEVEL} "
You can’t perform that action at this time.
0 commit comments