Commit f4a39aba authored by ibuler's avatar ibuler

[Debug] 无法print中文

parent 3300d20c
......@@ -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')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment