Skip to content

Commit 9bb419e

Browse files
authored
feat: fix the bug and add some feature in apisix.service (#143)
1 parent f0382c3 commit 9bb419e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

usr/lib/systemd/system/apisix.service

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
# apisix systemd service
2+
# https://github.com/api7/apisix-build-tools/blob/master/usr/lib/systemd/system/apisix.service
13
[Unit]
24
Description=apisix
3-
Conflicts=apisix.service
5+
#Conflicts=apisix.service
46
After=network-online.target
7+
Wants=network-online.target
58

69
[Service]
710
Type=forking
11+
Restart=on-failure
812
WorkingDirectory=/usr/local/apisix
913
ExecStart=/usr/bin/apisix start
1014
ExecStop=/usr/bin/apisix stop
1115
ExecReload=/usr/bin/apisix reload
16+
LimitNOFILE=65536
17+
18+
[Install]
19+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)