han6565 opened a new issue #4243: URL: https://github.com/apache/apisix/issues/4243
### Issue description I want create a systemd file , start failed . The file like this : --------------------------------------------------- [Unit] Description=apisix Conflicts=apisix.service After=network.target [Service] Type=forking ExecStart=/usr/local/apisix/bin/apisix start ExecStop=/usr/local/apisix/bin/apisix stop ExecReload=/usr/local/apisix/bin/apisix restart Restart=on-failure RestartSec=1s PrivateTmp=true --------------------------------------------------- then start apisix(systemctl start apisix),start failed May 13 17:29:18 xxxxxx: Starting apisix... May 13 17:29:18 xxxxxx: /usr/local/openresty/luajit/bin/luajit /usr/local/apisix/apisix/cli/apisix.lua start May 13 17:29:18 xxxxxx: /usr/local/openresty/luajit/bin/luajit: /usr/local/apisix/apisix/cli/apisix.lua:31: module 'apisix.cli.env' not found: May 13 17:29:18 xxxxxx: no field package.preload['apisix.cli.env'] the apisix in the path "/usr/local/apisix",and I can start it in that path.but the systemctl cannot start ### Environment Request help without environment information will be ignored or closed. * apisix version (cmd: `apisix version`):2.5 * OS (cmd: `uname -a`):centos 7.7 * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):openresty/1.19.3.1 * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.4 * apisix-dashboard version, if have: * luarocks version, if the issue is about installation (cmd: `luarocks --version`):3.4 -- 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: [email protected]
