From e3d5df37f464f2b75183b6f10fe862659d13244b Mon Sep 17 00:00:00 2001 From: Zhongwen Deng Date: Mon, 8 May 2023 15:44:01 +0800 Subject: [PATCH] chore: replace /bin/sh with /bin/bash --- deploy/packages/emqx.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/packages/emqx.service b/deploy/packages/emqx.service index 9982c6ef5..ce342b632 100644 --- a/deploy/packages/emqx.service +++ b/deploy/packages/emqx.service @@ -25,7 +25,7 @@ LimitNOFILE=1048576 # emqx stop will ping node, always return 0 to make sure next command will be executed ExecStop=/bin/bash -c '/usr/bin/emqx stop; exit 0' # If the process is still running, force kill it -ExecStop=/bin/sh -c 'if [ ps -p $MAINPID >/dev/null 2>&1 ]; then /bin/kill -15 $MAINPID; fi' +ExecStop=/bin/bash -c 'if [ ps -p $MAINPID >/dev/null 2>&1 ]; then kill -15 $MAINPID; fi' # Wait long enough before force kill for graceful shutdown TimeoutStopSec=120s