From e09347535177e680eff00dd50ebed28368929e50 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 14 Oct 2019 11:37:13 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9jms=20stop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jms | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jms b/jms index 0cf4a1171..1affac1d2 100755 --- a/jms +++ b/jms @@ -445,8 +445,7 @@ def stop_service(srv, sig=15): def stop_daemon_service(): pid = get_pid('jms') - logging.info("Daemon pid is: {}".format(pid)) - if pid: + if pid and check_pid(pid): os.kill(pid, 15)