Commit 8fca277b authored by godog's avatar godog

nginx: rely on error_log on syslog during normal operation

Without this setting the regular nginx error logs result in duplication,
since we're also setting error_log to syslog via nginx.conf.

Other systemd phases are left unchanged since nginx.conf might be borked
in the first place.
parent baca7e60
Pipeline #6821 passed with stage
in 3 minutes and 4 seconds
......@@ -12,7 +12,7 @@ PIDFile=/run/nginx/nginx.pid
# option, force ownership here or nginx will refuse to (re)start.
ExecStartPre=+/usr/bin/install -v -d -m 700 -o nginx -g nginx /var/cache/nginx /var/cache/nginx/temp
ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on; error_log stderr;'
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on; error_log stderr;'
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on; error_log /dev/null;'
ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on; error_log stderr;' -s reload
ExecStop=/bin/kill -TERM $MAINPID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment