From f4a39aba003eef3b4245d4451d659d447639a3fb Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 1 Jan 2018 22:00:08 +0800 Subject: [PATCH] =?UTF-8?q?[Debug]=20=E6=97=A0=E6=B3=95print=E4=B8=AD?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_server.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/run_server.py b/run_server.py index 45f2b47c4..bf8677ab0 100644 --- a/run_server.py +++ b/run_server.py @@ -147,17 +147,7 @@ def stop_service(): os.unlink('/tmp/beat.pid') -if __name__ == '__main__': - parser = argparse.ArgumentParser(description="Jumpserver start tools") - parser.add_argument("services", type=str, nargs='+', default="all", - choices=("all", "gunicorn", "celery", "beat"), - help="The service to start", - ) - args = parser.parse_args() - - try: - start_service(args.services) - except KeyboardInterrupt: - stop_service() +start_service('all') +