unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Adam Faiz <adam.faiz@disroot.org>
Cc: 68065-done@debbugs.gnu.org
Subject: bug#68065: [PATCH] [shepherd] doc: Add init system config for another distro.
Date: Tue, 02 Jan 2024 23:41:45 +0100	[thread overview]
Message-ID: <87cyujgxxy.fsf@gnu.org> (raw)
In-Reply-To: <d02c8b66-f50b-4e81-32cf-ecb44c273ad8@disroot.org> (Adam Faiz's message of "Thu, 28 Dec 2023 01:47:19 +0800")

Hi,

Adam Faiz <adam.faiz@disroot.org> skribis:

>>From 55adea7b9529bb89ef1d67c830851043fbf237be Mon Sep 17 00:00:00 2001
> From: AwesomeAdam54321 <adam.faiz@disroot.org>
> Date: Thu, 28 Dec 2023 01:29:17 +0800
> Subject: [PATCH] doc: Add init system config for another distro.
>
> * doc/examples/awesomeadam.scm: New file.

Applied, thanks!

> +(register-services (list accounts-daemon
> +			 apparmor
> +			 avahi-daemon

[...]

> +(for-each start-service (list accounts-daemon
> +			      apparmor
> +			      avahi-daemon

I think you could (1) avoid repeating the whole lists, and (2) replace
(for-each start-service …) with:

  (start-in-the-background
    (map service-canonical-name the-list-of-services))

This allows for more parallelism when starting services.

Good to see shepherd put to good use on distros other than Guix!

Ludo’.




      reply	other threads:[~2024-01-02 22:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-27 17:47 [bug#68065] [PATCH] [shepherd] doc: Add init system config for another distro Adam Faiz via Guix-patches via
2024-01-02 22:41 ` Ludovic Courtès [this message]

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cyujgxxy.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=68065-done@debbugs.gnu.org \
    --cc=adam.faiz@disroot.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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).