mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 01:45:27 +00:00
[Update] 启动脚本
This commit is contained in:
4
jms
4
jms
@@ -120,6 +120,8 @@ def is_running(s, unlink=True):
|
||||
def parse_service(s):
|
||||
if s == 'all':
|
||||
return all_services
|
||||
elif "," in s:
|
||||
return [i.strip() for i in s.split(',')]
|
||||
else:
|
||||
return [s]
|
||||
|
||||
@@ -316,7 +318,7 @@ if __name__ == '__main__':
|
||||
)
|
||||
parser.add_argument(
|
||||
"service", type=str, default="all", nargs="?",
|
||||
choices=("all", "gunicorn", "celery", "beat"),
|
||||
choices=("all", "gunicorn", "celery", "beat", "celery,beat"),
|
||||
help="The service to start",
|
||||
)
|
||||
parser.add_argument('-d', '--daemon', nargs="?", const=1)
|
||||
|
Reference in New Issue
Block a user