summarylogtreecommitdiffstats
path: root/nginx.service
diff options
context:
space:
mode:
authorLeo P2015-12-01 14:04:37 -0500
committerLeo P2015-12-01 14:04:37 -0500
commit62c687af52180967f388a628837587682ff438d0 (patch)
treebdac601c80ce4f28da4958272e7dead7acb0010c /nginx.service
downloadaur-62c687af52180967f388a628837587682ff438d0.tar.gz
try out nchan
Diffstat (limited to 'nginx.service')
-rw-r--r--nginx.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/nginx.service b/nginx.service
new file mode 100644
index 00000000000..c237fd3051d
--- /dev/null
+++ b/nginx.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=A high performance web server and a reverse proxy server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/nginx.pid
+PrivateDevices=yes
+SyslogLevel=err
+
+ExecStartPre=/usr/bin/nginx -t -q -g 'pid /run/nginx.pid; error_log stderr;'
+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