From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sGVqO09ai191OwAA0tVLHw (envelope-from ) for ; Sat, 17 Oct 2020 20:55:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AY3CNk9ai1+qaAAAB5/wlQ (envelope-from ) for ; Sat, 17 Oct 2020 20:55:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 68C029400BF for ; Sat, 17 Oct 2020 20:55:43 +0000 (UTC) Received: from localhost ([::1]:40994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTtEs-00043G-5y for larch@yhetil.org; Sat, 17 Oct 2020 16:55:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTtEk-000433-8C for help-guix@gnu.org; Sat, 17 Oct 2020 16:55:34 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:34184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTtEh-0006x9-Hw for help-guix@gnu.org; Sat, 17 Oct 2020 16:55:33 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 144da7ad; Sat, 17 Oct 2020 20:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=sHGUENjxVsY+aBBwtNZa9uWgF81rrNSs1wKrQd1ckR4=; b=RFTykbK+K4vA y9GlAw1XGl742gZ4EYNEtWQ1j08kHFfvhSWPpf1baWbAS3l72MxjsWji+1lEWZXN 7Ro8K6FpdGrE7ZnO7waDkJkopZ7Xid1X4yqQhDxgRFcsAYBncrbpHlYjQ+E9s0cX 6a4A7YDQue1LOdWLRnxHhGEEl4bPLwnr4I9UJh0iU6VS5SqAvHb1ozD4NYN0HHYD ELQiuICp1mP7A3FJVtEFWZRpCbbTuOlgAl9zAGyUHxarg1SEfaRHE1VaipDrYsXI MJQ4X19jwcvW3RBcVKR+dKB+mwSf6FEd3x//rYwrA0hRzdZqilSU8EoujwvpZ3So 8TufjNEsrw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 89b1470d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 17 Oct 2020 20:55:19 +0000 (UTC) Date: Sat, 17 Oct 2020 16:55:04 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <4f3af578e6f34546cdc06abb62a07878c5871677.camel@divoplade.fr> References: <69eea6b79a4850a66adc24a067ebba0d98c33c58.camel@divoplade.fr> <20201017155803.ovqsqzy7mzejdk7l@wzguix> <4f3af578e6f34546cdc06abb62a07878c5871677.camel@divoplade.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: How do you define a service? To: help-guix@gnu.org, divoplade , =?UTF-8?Q?Wiktor_=C5=BBelazny?= From: Julien Lepiller Message-ID: <8C3A100B-A611-44AA-9D56-EE9605D0BB59@lepiller.eu> Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=RFTykbK+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 2.59 X-TUID: ITRQH1KavWPE Le 17 octobre 2020 15:47:50 GMT-04:00, divoplade a =C3= =A9crit : >Hello, > >Le samedi 17 octobre 2020 =C3=A0 17:58 +0200, Wiktor =C5=BBelazny a =C3= =A9crit : >> You might want to take a look at [1]=2E >>=20 >> W=C5=BB >>=20 >> [1]: https://www=2Emndet=2Enet/2016/05/04/guixsd-system-service=2Ehtml > >This is exactly what I was looking for, although I needed to import >ice-9 optargs for the define* function=2E Results is here:=20 >https://code=2Edivoplade=2Efr/pomdappi=2Egit/tree/guix/divoplade/services= /pomdappi=2Escm > >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)=2E Don't you have one pair of parentheses too much around make-forkexec-const= ructor? I think it may try to evaluate the result as a function with no arg= ument if you do that=2E > >Do you know what happens? > >Best regards, > >divoplade