summaryrefslogtreecommitdiff
path: root/pcr/nginx-passenger/service
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-09-28 00:28:29 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-09-28 00:28:29 -0400
commit77b540c3dd5583081493304a0481808cd5cb0c03 (patch)
tree5cd49e3047dc0f6551ac8ca659ac6fb2929e2cef /pcr/nginx-passenger/service
parent680eb08892d1e6f49e7f5dad41908075fd943156 (diff)
Update pcr/nginx-passenger
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