[Debug] 无法print中文

pull/828/merge
ibuler 2018-01-01 22:00:08 +08:00
parent 3300d20c1c
commit f4a39aba00
1 changed files with 2 additions and 12 deletions

View File

@ -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')