From: "jgart" <jgart@dismail.de>
To: "Ludovic Courtès" <ludo@gnu.org>,
"John Kehayias" <john.kehayias@protonmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Transformations Shell Syntax
Date: Mon, 03 Jul 2023 00:01:45 +0000 [thread overview]
Message-ID: <07639ff5ed0060fc653c7d1b394ae88b@dismail.de> (raw)
In-Reply-To: <878rbyum14.fsf@gnu.org>
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
next prev parent reply other threads:[~2023-07-03 0:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 6:43 Transformations Shell Syntax jgart
2023-05-23 8:16 ` Efraim Flashner
2023-05-23 9:39 ` Simon Tournier
2023-05-23 13:24 ` jgart
2023-05-23 13:55 ` Andreas Enge
2023-05-23 14:12 ` jgart
2023-05-23 14:22 ` Simon Tournier
2023-05-23 14:28 ` Andreas Enge
2023-05-23 17:20 ` jgart
2023-05-24 3:06 ` Ryan Prior
2023-05-26 15:50 ` Ludovic Courtès
2023-05-27 17:07 ` John Kehayias
2023-07-02 19:54 ` Ludovic Courtès
2023-07-05 20:23 ` John Kehayias
2023-07-03 0:01 ` jgart [this message]
2023-07-16 13:14 ` Ludovic Courtès
2023-07-23 13:00 ` Hartmut Goebel
2023-08-16 14:03 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=07639ff5ed0060fc653c7d1b394ae88b@dismail.de \
--to=jgart@dismail.de \
--cc=guix-devel@gnu.org \
--cc=john.kehayias@protonmail.com \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.