Le 17 octobre 2020 15:47:50 GMT-04:00, divoplade <[email protected]> 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