From f566ccd3404092299e7c39286aa043c26c91a1b9 Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Thu, 8 Mar 2018 16:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=AF=E5=8A=A8=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PriceSystem/CalcCmdReceiver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PriceSystem/CalcCmdReceiver.py b/PriceSystem/CalcCmdReceiver.py index f5b3cd7..a27d5a8 100644 --- a/PriceSystem/CalcCmdReceiver.py +++ b/PriceSystem/CalcCmdReceiver.py @@ -47,7 +47,8 @@ def format_cmd(cmd): if __name__ == "__main__": - + if os.path.exists("/var/run/price.sys.stop"): + os.remove("/var/run/price.sys.stop") pro_num = config.get_worker_num() pool = multiprocessing.Pool(processes=pro_num) for pid in range(0, pro_num):