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, 5 insertions, 8 deletions
diff --git a/pcr/nginx-passenger/service b/pcr/nginx-passenger/service
index adfe6c0ab..84e3136ea 100644
--- a/pcr/nginx-passenger/service
+++ b/pcr/nginx-passenger/service
@@ -1,17 +1,14 @@
[Unit]
Description=A high performance web server and a reverse proxy server
-After=network.target
+After=network.target network-online.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
-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
+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
[Install]
WantedBy=multi-user.target