diff options
Diffstat (limited to 'pcr/nginx-passenger/service')
-rw-r--r-- | pcr/nginx-passenger/service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pcr/nginx-passenger/service b/pcr/nginx-passenger/service new file mode 100644 index 000000000..29d3aa877 --- /dev/null +++ b/pcr/nginx-passenger/service @@ -0,0 +1,14 @@ +[Unit] +Description=A high performance web server and a reverse proxy server +After=syslog.target 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 + +[Install] +WantedBy=multi-user.target |