help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Staging Scheme code to run as one-shot service


From: pelzflorian (Florian Pelz)
Subject: Re: Staging Scheme code to run as one-shot service
Date: Mon, 04 Mar 2024 09:18:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Owen.

"Owen T. Heisler" <writer@owenh.net> writes:
> (shepherd-service (auto-start? #f)
>                   (documentation "Say hello.")
>                   (one-shot? #t)
>                   (provision '(say-hello-service))
>                   (respawn? #f)
>                   (start #~(lambda ()
>                              #$(say-hello)))))))

According to

info "(shepherd)Service De- and Constructors"

the procedure in the start field normally forks, like with
make-forkexec-constructor.  Maybe this is a way forward?

Regards,
Florian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]