From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MFpwN0pYq2JpdAAAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 18:20:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aM2ENkpYq2InIgAAG6o9tA (envelope-from ) for ; Thu, 16 Jun 2022 18:20:26 +0200 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 18C9E16003 for ; Thu, 16 Jun 2022 18:20:26 +0200 (CEST) Received: from localhost ([::1]:50220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1sEK-0005CX-Nl for larch@yhetil.org; Thu, 16 Jun 2022 12:20:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1sD8-0003qu-Dj for help-guix@gnu.org; Thu, 16 Jun 2022 12:19:11 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1sD4-000233-RV for help-guix@gnu.org; Thu, 16 Jun 2022 12:19:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5B1DA240107 for ; Thu, 16 Jun 2022 18:19:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1655396343; bh=RSM50TjZCXGxyhLD5wmJ1gJmZQltqJBMwrlQelgKElg=; h=From:To:Subject:Date:From; b=fNniwyO3EkYNq5Ye44z3EEAxpfpyl6UB0zdgydQcZfMZ/2pmf6ZtPpQVFIDPSyXhB fypv5+BDVRTE3tv5xLKd7D2TNw6CLvBXaBI0IlwCMq9hvBpXSJa5OWGDrebi7ZRK8X gJdVczuMkXDupw3WhtIMRtx1SUKlSQB8JVAc39F/Q1vhU7SsnHjugm5IChk45ate2l acnt3kzoquKmpdyemxwvkJJPfMlCDXeoVbldhxKcKyJeoHp4gFfA1Hug5bJu6NpYYa Rk4qPrW0Iuf0f2d6PgxkNM49mY+XBOBJBqfo8dgOtdURhYOZOB5JjWeR0nasS29R5c 6rFt6EJKSYZgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LP6n221Vrz6tmJ; Thu, 16 Jun 2022 18:19:02 +0200 (CEST) From: Fredrik Salomonsson To: Tangonov , GUIX Help Subject: Re: Guix home user-level shepherd services In-Reply-To: <87tu8lpg2l.fsf@eml.cc> References: <8735g5se3v.fsf@eml.cc> <87v8t1qz9w.fsf@eml.cc> <87tu8lpg2l.fsf@eml.cc> Date: Thu, 16 Jun 2022 16:19:00 +0000 Message-ID: <87a6ack2dn.fsf@d2.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655396426; 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: 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=Mm/Qrb8yB443AgKsqB1OZBSHnKrm8VspRnBJL+LYMDU=; b=FBjW+Eai22Kh/5B0pHkJoj3K+N+VdVuLRWeii0FQWyC1qnL7dd/b0gF5nHpuQyQZcrhbY0 QLp6tJwNv003zEQCarpcLsJyZJFzeZMy2AzP+yRTSNeUsr7HrWbhizLfvYISCdyMvy5P9Z H8jRYaoFNg9X/ckXNhfDdjLGHUawUvaRqTwbIkUsxsSKFz+qFlM2+/ctQtIbYPNE9nnHaO 8izpO91I0cYQ3PXAo7QNYI6FrlEoQj2AZ5OtZy6Fq/aONaPf61vz8bRn/km3wDrNTZDIFg Sg/3GzKE6feSJVH/55hgZtKotAVw90GEty1WBfmBmxf1Sa8ga3B8y98iE4EWLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655396426; a=rsa-sha256; cv=none; b=k/evJkWIEVKe9fPr++f2ZSnomC1u84Tmv5QDmTKBi97xTcdVx8vYR9OkFoM5q93nOy/rBn D3flkRWkx1PrzUNPrDZrTMzV3fODGeD4R1pEo/pFBr9COkDJoRMKdHNjEQbVjCfkaoqHfp MMCky7yilVPIlzUypM7DfrpMNQYjihHB5s0M+QHsLTaKM/sMuSem19+IFgN2y4t3nRDH3e 92U6PPv5kMsfg9FuKF9Q7GaAPeVsINn1kxt782wpr77u61CuVJpH7Syuw1lIcfpfSmxYDN sI9B1ua2Nr7t6bdZfTTqN3HxSRJcs5cE1R3BxTM5OsgSdRwOqDWgoKQgeYCrAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fNniwyO3; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -5.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fNniwyO3; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 18C9E16003 X-Spam-Score: -5.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8Xuhd3K+ClyK Hi Tangonov, Tangonov writes: > Ok, it seems as though I had some bash configuration issues. My=20 > "$(inline commands)" made things unhappy for some reason. > > I resolved them, and shepherd started working...except that herd=20 > was totally bound up and not responsive. I had to kill it to=20 > reconfigure. > > I assumed this is because the services were holding stuff up...so=20 > I tried a forked config: > > #+BEGIN_SRC scheme > (service home-shepherd-service-type > (home-shepherd-configuration > (services (list > (shepherd-service > (provision '(syncthing)) > (start #~(make-forkexec-constructor > "syncthing" #:user #:t)) > (stop #~(make-kill-destructor)) > (documentation > "Synchronize folders to other=20 > device")) > (shepherd-service > (provision '(pantalaimon)) > (start #~(make-forkexec-constructor > "pantalaimon" #:user #:t)) > (stop #~(make-kill-destructor)) > (documentation > "Crypto back-end server for=20 > ement.el")))))) > #+END_SRC > > The forked service does not seem to work :/ > > #+BEGIN_QUOTE > =CE=BB herd start pantalaimon > herd: exception caught while executing 'start' on service=20 > 'pantalaimon': > Throw to key `match-error' with args `("match" "no matching=20 > pattern" "pantalaimon")'. > #+END_QUOTE > The issue is most likely that make-forkexec-constructor's COMMAND argument expects a list of strings [0]. Try and see if this works: #+BEGIN_SRC scheme (service home-shepherd-service-type (home-shepherd-configuration (services (list (shepherd-service (provision '(syncthing)) (start #~(make-forkexec-constructor (list "syncthing") #:user #:t)) (stop #~(make-kill-destructor)) (documentation "Synchronize folders to other=20 device")) (shepherd-service (provision '(pantalaimon)) (start #~(make-forkexec-constructor (list "pantalaimon") #:user #:t)) (stop #~(make-kill-destructor)) (documentation "Crypto back-end server for=20 ement.el")))))) #+END_SRC [0] https://www.gnu.org/software/shepherd/manual/html_node/Service-De_002d-= and-Constructors.html#Service-De_002d-and-Constructors --=20 s/Fred[re]+i[ck]+/Fredrik/g