This is an automated email from the ASF dual-hosted git repository.
shreemaanabhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 1fd261319 ci: fix a bug that can not open nginx.pid (#10061)
1fd261319 is described below
commit 1fd2613198e7640018ea5576d9935b828e25fb9f
Author: Ruidong-X <[email protected]>
AuthorDate: Mon Aug 21 13:18:46 2023 +0800
ci: fix a bug that can not open nginx.pid (#10061)
---
ci/linux_apisix_master_luarocks_runner.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ci/linux_apisix_master_luarocks_runner.sh
b/ci/linux_apisix_master_luarocks_runner.sh
index 8931ad82c..3e99baf34 100755
--- a/ci/linux_apisix_master_luarocks_runner.sh
+++ b/ci/linux_apisix_master_luarocks_runner.sh
@@ -52,6 +52,13 @@ script() {
sudo PATH=$PATH apisix init
sudo PATH=$PATH apisix start
sudo PATH=$PATH apisix quit
+ for i in {1..10}
+ do
+ if [ ! -f /usr/local/apisix/logs/nginx.pid ];then
+ break
+ fi
+ sleep 0.3
+ done
sudo PATH=$PATH apisix start
sudo PATH=$PATH apisix stop