Subject: Re: [bug#68065] [PATCH] [shepherd] doc: Add init system config for another distro.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 02 Jan 2024 23:41:45 +0100

Hi,

Adam Faiz <[email-masked]> skribis:

>>>From 55adea7b9529bb89ef1d67c830851043fbf237be Mon Sep 17 00:00:00 2001
> From: AwesomeAdam54321 <[email-masked]>
> 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’.