[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you define a service?
From: |
Julien Lepiller |
Subject: |
Re: How do you define a service? |
Date: |
Sat, 17 Oct 2020 16:55:04 -0400 |
User-agent: |
K-9 Mail for Android |
Le 17 octobre 2020 15:47:50 GMT-04:00, divoplade <d@divoplade.fr> a écrit :
>Hello,
>
>Le samedi 17 octobre 2020 à 17:58 +0200, Wiktor Żelazny a écrit :
>> You might want to take a look at [1].
>>
>> WŻ
>>
>> [1]: https://www.mndet.net/2016/05/04/guixsd-system-service.html
>
>This is exactly what I was looking for, although I needed to import
>ice-9 optargs for the define* function. Results is here:
>https://code.divoplade.fr/pomdappi.git/tree/guix/divoplade/services/pomdappi.scm
>
>I still have a problem: shepherd reports an exception when loading the
>service:
>
>Wrong type to apply: 17293
>
>(or any number, it varies, maybe a PID).
Don't you have one pair of parentheses too much around
make-forkexec-constructor? I think it may try to evaluate the result as a
function with no argument if you do that.
>
>Do you know what happens?
>
>Best regards,
>
>divoplade