From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wCNdAGTpFWdzGgEA62LTzQ:P1 (envelope-from ) for ; Mon, 21 Oct 2024 05:40:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wCNdAGTpFWdzGgEA62LTzQ (envelope-from ) for ; Mon, 21 Oct 2024 07:40:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bonni.codes header.s=uberspace header.b=Z9Y9bJTK; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729489251; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=brFl0Tc8PgDysmblqwtnAcKgfekstEesVLrJi9T1Kf4=; b=gmP53mbQiOSmrOS/Wv7iyelSYJQPthNjL2vp2W/FknXKTsMklI2TkMV4xbhaISmutb29uw cFEN2668gUUPWKik/O3DVPwKyb2+XLFl+y5SfhqyTzEkezzVBOJM4okD4HL9MOujoeFClT GADVeoB7KGvCx1E2i1Be4Zi5kGaQK/ONRGXUVQ25doX+SMxf1o6t+ldgFEUSxhKgJJrqua mDxl1utGranXk3RpL79s94ATaR866eOsjaPp4gUXnVMf5yCbF98iewbret4jA8Q3YiMLr7 Inot9RwuC0C5LTapVGrg7jacTb/kkO3OP+I28WfyDN8IW2CB2Q0hIb8nprbn1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bonni.codes header.s=uberspace header.b=Z9Y9bJTK; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729489251; a=rsa-sha256; cv=none; b=o6EhttMWFx5sfuaxkf9dDLVmYsjzYO77xaT96xYzYVsbkjSOdNFcO1I9sppUIVPQJBE2m6 wrLos5bdnZOl3O+zYKi5mrK62jC3e8kwA6MnaIoUrh9yGyif5kly821TgW/LgGObV6U5TE cvAyGu7q3yyI9xw4BkLpmN1PK/thW2g8xx+sqtrM9UIEctYdwwTD+eHaJCqAwkS5K8CGWd TUjPCmjaUntRC7xAaqP9fV9u4hgHEKzfgpNkKGzcdqXgodp8vWqRadSjWsanennrpSB6iO +L8IPznjVKIRlRC66n1Fj6blNfxA6YtnTzu+qJqSCzTHx3u4BlGGbsFpxO4VvQ== 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 778DE44535 for ; Mon, 21 Oct 2024 07:40:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2l9U-0001LH-QY; Mon, 21 Oct 2024 01:40:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2dul-0006CE-Ns for help-guix@gnu.org; Sun, 20 Oct 2024 17:56:43 -0400 Received: from mailgate02.uberspace.is ([2a00:d0c0:200:0:1c7b:a6ff:fee0:8ea4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2duj-0005lX-Dy for help-guix@gnu.org; Sun, 20 Oct 2024 17:56:43 -0400 Received: from lacerta.uberspace.de (lacerta.uberspace.de [95.143.172.211]) by mailgate02.uberspace.is (Postfix) with ESMTPS id 4A52B17F702 for ; Sun, 20 Oct 2024 23:56:31 +0200 (CEST) Received: (qmail 22017 invoked by uid 988); 20 Oct 2024 21:56:31 -0000 Received: from unknown (HELO unkown) (::1) by lacerta.uberspace.de (Haraka/3.0.1) with ESMTPSA; Sun, 20 Oct 2024 23:56:30 +0200 From: "post@bonni.codes" Content-Type: multipart/signed; boundary="Apple-Mail=_80A1E80C-0613-4259-8B19-895D9D7AA5B4"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: trouble defining a shepherd service Message-Id: Date: Sun, 20 Oct 2024 23:56:19 +0200 To: help-guix@gnu.org X-Mailer: Apple Mail (2.3818.100.11.1.3) X-Rspamd-Bar: -- X-Rspamd-Report: FROM_DN_EQ_ADDR(1) BAYES_HAM(-1.92134) SIGNED_PGP(-2) MIME_GOOD(-0.2) MV_CASE(0.5) X-Rspamd-Score: -2.62134 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bonni.codes; s=uberspace; h=from:to:subject:date; bh=QvCN4BaBrx9dMlgbw79iQtbPtxVZnRJEiXaGvr1nqQM=; b=Z9Y9bJTKkSvXuo4z3SeUuSaZ5+mWEGoXXpl/Hrsdp56syn/WGBg5+dgb2M/yQnXyNPGva4hOU/ lY/M6nQlWYgTzOsR3Wx868z+xEPlIpOpq+fazO51IKMzT2rZLo3TNb8X842a5Kaww6+73E/+pAWK +KYshP0YKkemJQVOvQh55Ap8QeA+D4nYqAB7ZvCoLxLMEHvZVE8rQqVEV/neBvPqKypW2f+JzHiy 2K0eTy0Eilyn6Dblo5OJQdptzthz/wGVbC6pmdqeSjA/DpZGatGFMblNu6kfIsVZK6Vmg6XCeJxU Xbd3zaslWZIqsKh2cRwg+g7+CIaKSSN2IG90uDXg== Received-SPF: pass client-ip=2a00:d0c0:200:0:1c7b:a6ff:fee0:8ea4; envelope-from=post@bonni.codes; helo=mailgate02.uberspace.is 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 21 Oct 2024 01:40:21 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.10 X-Spam-Score: -0.10 X-Migadu-Queue-Id: 778DE44535 X-TUID: KUhMMmhVgauw --Apple-Mail=_80A1E80C-0613-4259-8B19-895D9D7AA5B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, I am trying to define a shepherd service to add to my system = configuration. Reading the docs this is what I came up with: (define openslides-shepherd-service (shepherd-service (documentation "Runs the openslides docker-compose.") (provision '(openslides)) (requirement '(dockerd)) (start #~(make-forkexec-constructor (list #$(file-append docker-compose "/bin/docker-compose") "up") #:directory =E2=80=9E/var/openslides" #:log-file "/var/log/openslides.log" #:pid-file "/var/run/openslides.pid" #:user "openslides") ) (stop #~(make-kill-destructor)))) (define openslides-service-type (service-type (name 'openslides) (description "The openslides-service-type") (extensions (list (service-extension shepherd-root-service-type = openslides-shepherd-service))) (default-value '()) )) The service only needs to run the docker-compose program in the = directory /var/openslides . There is no need for configuration. If I build my operating system I get the following error: ice-9/boot-9.scm:1685:16: In procedure raise-exception: Wrong type to apply: #< documentation: "Runs the = openslides docker-compose." provision: (openslides) requirement: = (dockerd) one-shot?: #f respawn?: #t respawn-limit: #f respawn-delay: #f = free-form: #f start: # "/bin/docker-compose">:out> = "up") #:directory "/var/openslides" #:log-file "/var/log/openslides.log" = #:pid-file "/var/run/openslides.pid" #:user "openslides") = /home/chris/helios-system/config.scm:38:10 7ff8fe625c00> stop: # actions: () auto-start?: #t modules: ((shepherd service) = ((guix build utils) #:hide (delete)) (guix build syscalls))> indicating that there ist something wrong with the value for the start = and stop fields. Where am I going wrong? Kind regards bonni -----BEGIN PGP PUBLIC KEY BLOCK----- mDMEZCntaxYJKwYBBAHaRw8BAQdANbpRRBxZVlIewesVvBOh2tlJCuK22g9lL5ZP 9xqJDtS0GGJvbm5pIDxwb3N0QGJvbm5pLmNvZGVzPoiWBBMWCAA+FiEE+lyu2HL6 Nk0naPZMGyPeqOa1B/sFAmQp7WsCGwMFCQWjmoAFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQGyPeqOa1B/snGAEAzddi9IcK/2EkrqPy2xmmwzLTAexKqZQqa+EE LdtcnNwBANV2xOXW6hASEz0SMz4FEbroFs2kv7by6Wcyy+Fxl0sHuDgEZCntaxIK KwYBBAGXVQEFAQEHQMrBS1fZCE1tuYac2MjA9nZit9leM8zlnyiaY6CdO/cRAwEI B4h+BBgWCAAmFiEE+lyu2HL6Nk0naPZMGyPeqOa1B/sFAmQp7WsCGwwFCQWjmoAA CgkQGyPeqOa1B/v95wD+N/6tRrCX9nqumpXgD3aZ8gcyA1uFSYP02HLyIUIwMY4A /2YC4i2z+G3nzMGBrfID2yXVJg4S4Bby/xOkDxKgYrYD =3DEEtE -----END PGP PUBLIC KEY BLOCK----- --Apple-Mail=_80A1E80C-0613-4259-8B19-895D9D7AA5B4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQT6XK7Ycvo2TSdo9kwbI96o5rUH+wUCZxV8gwAKCRAbI96o5rUH +ynkAQCv2Y4U6OSdGnmREcDnQJ4UC8gaGAae4SMjVB+JbGsiJAD9H7xONIPmz/o0 Q7DM3Eb1Mak9KVT4ShDca8Twwn2siw0= =jNLq -----END PGP SIGNATURE----- --Apple-Mail=_80A1E80C-0613-4259-8B19-895D9D7AA5B4--