Move daemon off to supervisor and out of nginx.conf closes #156

This commit is contained in:
Ric Harvey
2017-08-18 14:12:12 +01:00
parent 5fc072679a
commit e6871df283
2 changed files with 2 additions and 2 deletions

View File

@@ -35,5 +35,5 @@ http {
include /etc/nginx/sites-enabled/*; include /etc/nginx/sites-enabled/*;
} }
daemon off; #daemon off;

View File

@@ -32,7 +32,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0
[program:nginx] [program:nginx]
command=/usr/sbin/nginx command=/usr/sbin/nginx -g "daemon off; error_log /dev/stderr info;"
autostart=true autostart=true
autorestart=true autorestart=true
priority=10 priority=10