From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2IliGJcJFmfshAEAe85BDQ:P1 (envelope-from ) for ; Mon, 21 Oct 2024 07:58:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2IliGJcJFmfshAEAe85BDQ (envelope-from ) for ; Mon, 21 Oct 2024 09:58:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=libre.brussels header.s=mail header.b="Ts9frWc/"; dmarc=pass (policy=none) header.from=libre.brussels; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729497495; a=rsa-sha256; cv=none; b=Z6Foo11WpSgNU/vpsnu3ca+I4KwtzZT3OVsiQBtNxkjwr2aiNuPlV5bpQLX6+9PQUqijQo We07aQipOae5W2x6AeRMOnaDP8zqzRRgBF+Jrmx+g7u1fYpToOhEn/EsMyIBCm9NzvkgsS f4mN2hhXmoW3ytukvLOK2UC+ojHmG848B75cbaMQWYKRK693RBDJ4tF5aoxS26uGJEQtWd kLQ1gsRDT+n/6lHsc9w/ZzyfpqFO0MjCeoKpa08/B6EZ5whPxfdeZ/+R0MCQBCW8+kCw09 /Jw6uoRy6WQ2NPeiOSm/OwIUAEL0QXjn8DgsYjw1dv9xpc6kV8JdXSZg/KcyYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=libre.brussels header.s=mail header.b="Ts9frWc/"; dmarc=pass (policy=none) header.from=libre.brussels; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729497495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3mD4x6v4LE6t9eXfWsbs3lsJHQcP61QvGSOh8Vf+ar8=; b=et3LsO/5HdLKvR9OyY9XVcZbFAu6ra5jrXofvRHu3B0C5gMl+zXCwSni5KWDswnu04en6j 7POVrJFgLT9KT1sneKq+o2xWj57gCZMwDgQtjQjEmkvInI8vg4Uc80HQO8aYQKDWebjhZa h6eXti9zt6GBg4ugIv+3ZHu5B+udsDgN2mQbRLBLnaDmLuk+xHF/Kfg1cCV4ZtobKFuqJe qQ1dqf6t6ToxwmUVbDoNB0Y9w+QFbDMbUqwnDXBJXi6OjVYVwoVc9hly6QFtrPvXDxYtOd KsQKvfnTftTEKip13pVCG6HY1+U+Trc5/Vcfd49aBZMYMTu0MUFyXsbwItI25g== 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 1104E78C8B for ; Mon, 21 Oct 2024 09:58:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2nDH-0007Sz-Kl; Mon, 21 Oct 2024 03:52:27 -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 1t2nDE-0007Sm-UN for help-guix@gnu.org; Mon, 21 Oct 2024 03:52:24 -0400 Received: from libre.brussels ([2a01:4f8:201:1044::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2nDC-0008Q1-09 for help-guix@gnu.org; Mon, 21 Oct 2024 03:52:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libre.brussels; s=mail; t=1729497136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3mD4x6v4LE6t9eXfWsbs3lsJHQcP61QvGSOh8Vf+ar8=; b=Ts9frWc/OTxf6XXTZjcI2pVse8xYQKudfxtK71fSCiVUI70IrNS/I2eO2mP/30dyM2kJqQ yc8un8xhuGRiQPOkq5IPzc5nnbbE0pikqtUzWLF8/66DPksXndwKyQHqCGI8shmJbMg5jv tVyWZF66/xRxJVr5FZ+4dgmB5jwHuo0= MIME-Version: 1.0 Date: Mon, 21 Oct 2024 09:52:15 +0200 From: indieterminacy To: post@bonni.codes Cc: help-guix@gnu.org Subject: Re: trouble defining a shepherd service In-Reply-To: References: Message-ID: <8f98f94a896a188a078c09f0ef5c7c15@libre.brussels> X-Sender: indieterminacy@libre.brussels Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a01:4f8:201:1044::1; envelope-from=indieterminacy@libre.brussels; helo=libre.brussels 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.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-Spam-Score: -3.55 X-Spam-Score: -3.55 X-Migadu-Queue-Id: 1104E78C8B X-Migadu-Scanner: mx10.migadu.com X-TUID: pyZeQHYNwSBr Hey, A passing guess is that this line is incorrect: > #:directory „/var/openslides" Try redefining it to this incase: #:directory "/var/openslides" HTH On 2024-10-20 23:56, post@bonni.codes wrote: > 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 „/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: # # gnu/packages/docker.scm:109 7ff9068e96e0> "/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: # /home/chris/helios-system/config.scm:47:9 7ff8fe625bd0> 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 > =EEtE > -----END PGP PUBLIC KEY BLOCK-----