[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add the timer-trigger-action to a shepherd service?
From: |
Tomas Volf |
Subject: |
Re: How to add the timer-trigger-action to a shepherd service? |
Date: |
Wed, 18 Dec 2024 15:05:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello,
Felix Lechner via <help-guix@gnu.org> writes:
> Hi Tomas,
>
> On Mon, Dec 16 2024, Tomas Volf wrote:
>
>> what to put into the (actions) field
>
> Please try this:
>
> (actions
> (list (shepherd-action
> (name 'trigger)
> (documentation "Trigger the action associated with this timer.")
> (procedure #~(identity trigger-timer)))))
I see, so basically from shepherd use just the procedure, and craft the
rest of the action by hand. Thank you for the advice. :)
>
> You can see my full timer definitions here. [1]
>
> Kind regards
> Felix
>
> [1]
> https://codeberg.org/lechner/system-config/src/commit/4335818ba8da818f21810b5b402db51c77d3b344/host/wallace-server/operating-system.scm#L660-L664
>
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
signature.asc
Description: PGP signature