From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OMmIDHxKi1+cRQAA0tVLHw (envelope-from ) for ; Sat, 17 Oct 2020 19:48:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QINmCHxKi1+ZVQAA1q6Kng (envelope-from ) for ; Sat, 17 Oct 2020 19:48:12 +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 ACDB09401E3 for ; Sat, 17 Oct 2020 19:48:10 +0000 (UTC) Received: from localhost ([::1]:45322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTsBV-0003Mo-Jx for larch@yhetil.org; Sat, 17 Oct 2020 15:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTsBN-0003MO-CB for help-guix@gnu.org; Sat, 17 Oct 2020 15:48:01 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:54303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTsBL-0007op-7E for help-guix@gnu.org; Sat, 17 Oct 2020 15:48:00 -0400 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 0F457240007; Sat, 17 Oct 2020 19:47:51 +0000 (UTC) Message-ID: <4f3af578e6f34546cdc06abb62a07878c5871677.camel@divoplade.fr> Subject: Re: How do you define a service? From: divoplade To: Wiktor =?UTF-8?Q?=C5=BBelazny?= , help-guix@gnu.org Date: Sat, 17 Oct 2020 21:47:50 +0200 In-Reply-To: <20201017155803.ovqsqzy7mzejdk7l@wzguix> References: <69eea6b79a4850a66adc24a067ebba0d98c33c58.camel@divoplade.fr> <20201017155803.ovqsqzy7mzejdk7l@wzguix> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.178.230; envelope-from=d@divoplade.fr; helo=relay10.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/17 15:14:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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=none; dmarc=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: 1.49 X-TUID: ZRfWs9TLZ80B 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). Do you know what happens? Best regards, divoplade