mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-05-03 21:56:46 +00:00
[Debug] 无法print中文
This commit is contained in:
parent
3300d20c1c
commit
f4a39aba00
@ -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')
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user