We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e29fc0 commit 2f2e34fCopy full SHA for 2f2e34f
Nginx/install-openresty.md
@@ -46,3 +46,26 @@ Options:
46
-c filename : set configuration file (default: conf/nginx.conf)
47
-g directives : set global directives out of configuration file
48
```
49
+
50
+##### openresty.service
51
+```text
52
+[Unit]
53
+Description=OpenResty Web Application Server
54
+After=network.target
55
56
+[Service]
57
+Type=forking
58
+ExecStart=/usr/local/openresty/bin/openresty
59
+ExecReload=/usr/local/openresty/bin/openresty -s reload
60
+ExecStop=/usr/local/openresty/bin/openresty -s quit
61
+PrivateTmp=true
62
63
+[Install]
64
+WantedBy=multi-user.target
65
+```
66
67
+```bash
68
+cp openresty.service /etc/systemd/system/openresty.service
69
+systemctl enable openresty
70
+systemctl start openresty
71
0 commit comments