From d35bb561a4ac08c6185ed6d2bedbd92a60580a26 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Wed, 6 Nov 2024 11:09:26 +0800 Subject: [PATCH] feat : config --- restart_pre.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/restart_pre.sh b/restart_pre.sh index 861b92b..b97dae3 100644 --- a/restart_pre.sh +++ b/restart_pre.sh @@ -16,4 +16,10 @@ fi #杀死进程并重启进程 sudo lsof -i:9501|grep -v PID|awk '{print $2}'|sudo xargs kill -9 -echo 'kill success'; \ No newline at end of file +echo 'kill success'; + +source /etc/profile + +/bin/nohup php $HomeDir/bin/hyperf.php start > $HomeDir/../hyperf_run.log 2>&1 & + +echo '!!!The service restart success!!!'; \ No newline at end of file