Skip to content

Commit

Permalink
Nginx: put daemon setting in config
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Jul 3, 2024
1 parent df19abe commit 8527937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pid /run/nginx.pid;

daemon off;
error_log stderr warn;
pcre_jit on;
worker_processes auto;
Expand Down
2 changes: 1 addition & 1 deletion common/config/supervisor/conf.d/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:nginx]
command=sh -c "nginx -g 'daemon off;' || kill -s SIGQUIT $PPID"
command=sh -c "nginx || kill -s SIGQUIT $PPID"

stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
Expand Down

0 comments on commit 8527937

Please sign in to comment.