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):