unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 59197@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#59197] [PATCH 3/3] home: services: redshift: Add 'configuration' action.
Date: Fri, 11 Nov 2022 19:12:46 +0100	[thread overview]
Message-ID: <20221111181246.4217-3-ludo@gnu.org> (raw)
In-Reply-To: <20221111181246.4217-1-ludo@gnu.org>

* gnu/home/services/shepherd.scm: Re-export
'shepherd-configuration-action'.
* gnu/home/services/desktop.scm (redshift-shepherd-service): Add
'actions' field.
---
 gnu/home/services/desktop.scm  | 3 ++-
 gnu/home/services/shepherd.scm | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/home/services/desktop.scm b/gnu/home/services/desktop.scm
index 1ebfb14f3c..cb25b03b64 100644
--- a/gnu/home/services/desktop.scm
+++ b/gnu/home/services/desktop.scm
@@ -165,7 +165,8 @@ (define config-file
          (start #~(make-forkexec-constructor
                    (list #$(file-append redshift "/bin/redshift")
                          "-c" #$config-file)))
-         (stop #~(make-kill-destructor)))))
+         (stop #~(make-kill-destructor))
+         (actions (list (shepherd-configuration-action config-file))))))
 
 (define home-redshift-service-type
   (service-type
diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm
index d2a803279f..1a70a220f0 100644
--- a/gnu/home/services/shepherd.scm
+++ b/gnu/home/services/shepherd.scm
@@ -45,7 +45,8 @@ (define-module (gnu home services shepherd)
                shepherd-service-auto-start?
                shepherd-service-modules
 
-               shepherd-action))
+               shepherd-action
+               shepherd-configuration-action))
 
 (define-record-type* <home-shepherd-configuration>
   home-shepherd-configuration make-home-shepherd-configuration
-- 
2.38.0





  parent reply	other threads:[~2022-11-11 18:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11 18:11 [bug#59197] [PATCH 0/3] Support 'herd configuration SERVICE' to view config file Ludovic Courtès
2022-11-11 18:12 ` [bug#59197] [PATCH 1/3] services: shepherd: Define 'shepherd-configuration-action' helper Ludovic Courtès
2022-11-11 18:12   ` [bug#59197] [PATCH 2/3] services: Add Shepherd 'configuration' action to various services Ludovic Courtès
2022-11-11 18:12   ` Ludovic Courtès [this message]
2022-11-14  2:16 ` [bug#59197] [PATCH 0/3] Support 'herd configuration SERVICE' to view config file 宋文武 via Guix-patches via
2022-11-18 14:52   ` bug#59197: " 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

  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=20221111181246.4217-3-ludo@gnu.org \
    --to=ludo@gnu.org \
    --cc=59197@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 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).