You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/17 13:03:31 UTC

[GitHub] [apisix] starsz commented on a change in pull request #4246: docs: add instruction about how to add systemd unit files

starsz commented on a change in pull request #4246:
URL: https://github.com/apache/apisix/pull/4246#discussion_r633510621



##########
File path: docs/en/latest/how-to-build.md
##########
@@ -167,3 +167,15 @@ Content-Type: text/html
 Some features require you to build OpenResty with extra Nginx modules.
 If you need those features, you can build OpenResty with
 [this build script](https://raw.githubusercontent.com/api7/apisix-build-tools/master/build-apisix-openresty.sh).
+
+## 7. Add systemd unit file for APISIX
+
+If you install APISIX with rpm package, the unit file is installed automatically, and you could directly do
+
+```
+$ systemctl start apisix
+$ systemctl stop apisix
+$ systemctl enable apisix
+```
+
+If installed in other methods, you could refer to [the unit file template](https://github.com/api7/apisix-build-tools/blob/master/usr/lib/systemd/system/apisix.service), modify if needed, and place it as `usr/lib/systemd/system/apisix.service`.

Review comment:
       Installed in other methods, maybe don't have `apisix.service` in the file system.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org