[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Transformations Shell Syntax
From: |
jgart |
Subject: |
Re: Transformations Shell Syntax |
Date: |
Mon, 03 Jul 2023 00:01:45 +0000 |
Hi Ludo,
Is there any interest in having a syntax for shepherd for controlling multiple
workers?
>>>>>>>
Excerpt from
https://blog.miguelgrinberg.com/post/running-a-flask-application-as-a-service-with-systemd
Now I can start four workers using brace expansion in bash:
$ sudo systemctl daemon-reload
$ sudo systemctl start microblog-tasks@{1..4}
$ sudo systemctl status microblog-tasks@{1..4}
And if you want to address an individual instance you can do that as well:
$ sudo systemctl restart microblog-tasks@3
>>>>>>>>>
In other words being able to specify workers with shepherd:
Starting multiple workers:
$ herd start microblog-tasks@{1..4}
$ herd status microblog-tasks@{1..4}
Restarting a particular worker:
$ herd restart microblog-tasks@3
WDYT