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

Reply via email to