From: Bruno Victal <mirai@makinata.eu>
To: 60657@debbugs.gnu.org
Subject: bug#60657: Rethinking how service extensions work
Date: Tue, 24 Jan 2023 17:31:05 +0000 [thread overview]
Message-ID: <10e6cd1e-644c-b02c-e0a6-bcb110dbd5f1@makinata.eu> (raw)
In-Reply-To: <a720e5dc-bcec-6b36-56dd-19738101c785@makinata.eu>
On 2023-01-08 12:31, Bruno Victal wrote:
> (...) the issue arises from using activation-service-type to create files/directories for services
> when these should be either (1) shepherd one-shot services or moved into the 'start' procedure of the service.
Idea:
Instead of moving these procedures into the start procedure from shepherd-service and end up with a very
large start constructor, we could augment <shepherd-service> with a 'pre-start' field that is responsible for
setting up the initial conditions for the service. That is, we move most of the code in the activation-service-type extensions
into this 'pre-start' field. We could also consider if it would make sense adding post-start, pre-stop and post-stop fields.
Cheers,
Bruno
next prev parent reply other threads:[~2023-01-24 17:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-08 12:31 bug#60657: Rethinking how service extensions work Bruno Victal
2023-01-24 17:31 ` Bruno Victal [this message]
2023-02-25 17:46 ` Ludovic Courtès
2023-05-09 19:12 ` Bruno Victal
2023-05-10 19:57 ` Liliana Marie Prikler
2023-05-11 10:22 ` 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=10e6cd1e-644c-b02c-e0a6-bcb110dbd5f1@makinata.eu \
--to=mirai@makinata.eu \
--cc=60657@debbugs.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.