[Debug] 无法print中文

pull/828/merge
ibuler 7 years ago
parent 3300d20c1c
commit f4a39aba00

@ -147,17 +147,7 @@ def stop_service():
os.unlink('/tmp/beat.pid') os.unlink('/tmp/beat.pid')
if __name__ == '__main__': start_service('all')
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()

Loading…
Cancel
Save