Skip to content

Commit 2f2e34f

Browse files
authored
Include openresty.service setup in installation guide
Added systemd service configuration for OpenResty.
1 parent 2e29fc0 commit 2f2e34f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Nginx/install-openresty.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,26 @@ Options:
4646
-c filename : set configuration file (default: conf/nginx.conf)
4747
-g directives : set global directives out of configuration file
4848
```
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

Comments
 (0)