summaryrefslogtreecommitdiff
path: root/pcr/nginx-passenger/service
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/nginx-passenger/service')
-rw-r--r--pcr/nginx-passenger/service13
1 files changed, 8 insertions, 5 deletions
diff --git a/pcr/nginx-passenger/service b/pcr/nginx-passenger/service
index 29d3aa877..adfe6c0ab 100644
--- a/pcr/nginx-passenger/service
+++ b/pcr/nginx-passenger/service
@@ -1,14 +1,17 @@
[Unit]
Description=A high performance web server and a reverse proxy server
-After=syslog.target network.target
+After=network.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
-ExecStartPre=/usr/bin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
-ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
-ExecReload=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -s reload
-ExecStop=/usr/bin/nginx -g 'pid /run/nginx.pid;' -s quit
+PrivateDevices=yes
+SyslogLevel=err
+
+ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
+ExecReload=/usr/bin/kill -HUP $MAINPID
+KillSignal=SIGQUIT
+KillMode=mixed
[Install]
WantedBy=multi-user.target