From 22dbd288df2840eca0119182dd9f0a1ef3cc0027 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 22 Oct 2024 14:54:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96cmd=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd b/cmd index 60197d6eb..b06eec747 100755 --- a/cmd +++ b/cmd @@ -560,7 +560,11 @@ if [ $# -gt 0 ]; then e="php artisan $@" && run_exec php "$e" elif [[ "$1" == "php" ]]; then shift 1 - e="php $@" && run_exec php "$e" + if [[ "$1" == "restart" ]] || [[ "$1" == "reboot" ]]; then + restart_php + else + e="php $@" && run_exec php "$e" + fi elif [[ "$1" == "nginx" ]]; then shift 1 e="nginx $@" && run_exec nginx "$e"