GNU bug report logs - #68065
[PATCH] [shepherd] doc: Add init system config for another distro.

Previous Next

Package: guix-patches;

Reported by: Adam Faiz <adam.faiz <at> disroot.org>

Date: Wed, 27 Dec 2023 17:49:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 68065-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Adam Faiz <adam.faiz <at> disroot.org>
Cc: 68065-done <at> debbugs.gnu.org
Subject: Re: [bug#68065] [PATCH] [shepherd] doc: Add init system config for
 another distro.
Date: Tue, 02 Jan 2024 23:41:45 +0100
Hi,

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

>>From 55adea7b9529bb89ef1d67c830851043fbf237be Mon Sep 17 00:00:00 2001
> From: AwesomeAdam54321 <adam.faiz <at> 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’.




This bug report was last modified 1 year and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.