summaryrefslogtreecommitdiff
path: root/openresty.service
diff options
context:
space:
mode:
Diffstat (limited to 'openresty.service')
-rw-r--r--openresty.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/openresty.service b/openresty.service
new file mode 100644
index 0000000..164602c
--- /dev/null
+++ b/openresty.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=The OpenResty Application Platform
+After=syslog.target network-online.target remote-fs.target nss-lookup.target
+Wants=network-online.target
+
+[Service]
+Type=forking
+PIDFile=/usr/local/openresty/nginx/logs/nginx.pid
+ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
+ExecStart=/usr/local/openresty/nginx/sbin/nginx
+ExecReload=/bin/kill -s HUP $MAINPID
+ExecStop=/bin/kill -s QUIT $MAINPID
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target