summaryrefslogtreecommitdiff
path: root/community/nginx/service
diff options
context:
space:
mode:
Diffstat (limited to 'community/nginx/service')
-rw-r--r--community/nginx/service14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/nginx/service b/community/nginx/service
new file mode 100644
index 000000000..29d3aa877
--- /dev/null
+++ b/community/nginx/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