[Update] 启动脚本

This commit is contained in:
ibuler
2019-01-19 19:29:38 +08:00
parent c8d007f9d7
commit 384cdfbc19
3 changed files with 11 additions and 5 deletions

4
jms
View File

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