From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2N01Mtd6q2JlXAEAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 20:47:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gEwlMdd6q2LkFAAAG6o9tA (envelope-from ) for ; Thu, 16 Jun 2022 20:47:51 +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 C08612DC9E for ; Thu, 16 Jun 2022 20:47:50 +0200 (CEST) Received: from localhost ([::1]:55630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1uWz-0007vX-9I for larch@yhetil.org; Thu, 16 Jun 2022 14:47:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1uRy-0004ie-FP for help-guix@gnu.org; Thu, 16 Jun 2022 14:42:38 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1uRp-0001e6-UX for help-guix@gnu.org; Thu, 16 Jun 2022 14:42:38 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 28D635C009F; Thu, 16 Jun 2022 14:42:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 16 Jun 2022 14:42:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eml.cc; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1655404946; x=1655491346; bh=jD8niQwRjZ 1GSuZIlEoTJ9MambqnTvrsUz1Y+jTt0Qg=; b=BGlv6ZDFmtuKVS38WBIq2P044U 0uiC9PxmZfabcHJPLQZvlIStliQybnypNtWYedUCmICLgUs7jmB9BmFKObc390Cq EYpTiIFVr8+LZmYCZ4le5/qCae1sS/WSVUTr/s7BqnQVLjgkJ3koXsgDND5ijkvs e+D/5eYcmXOqTEd+DmIhKKthWkZVoI9Ev6fuoeiqoWgEA56FtvKG66HooGAnTVt6 z9gnzC2Mx+cd6BSSaqZV8FnKoH/Di16AkfgKnRnd5YfiPxkFJUqEtzkE8QdfAiG1 0wC85fdbxgOItOXyJxVo+D/dbHTXtTUgHIZQA14kxgUHq6lVHjRVFw9LCIGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1655404946; x=1655491346; bh=jD8niQwRjZ1GSuZIlEoTJ9Mambqn TvrsUz1Y+jTt0Qg=; b=AYqrGVNBaNCm/nsyc81ICoKFa0RFdsz+LFpDVAUgt4uA +O8cqKazLtq1wwIiyPCwDNQDbdoqUMz7TWRf1rhfbbQb20lJHc8V/7XWuVV3lEEo 7QFIUs8U1mI8woJNC8euXxvJFT2trQcOEKGL1s9gJAI12Pp/5s+5mb8S0Npix61z A8sMnRtQ96MU5vXjrVrO0Uwt5Oc2QPWqpjiMZ8B47AodJwZpwANh8smt1gfR0POL n3EVISIZQYoQPLrITIAreiXQ2QpfRxWTmgG4urLeepOOCrcZRqolRm0U+5xdLtZN w6M29mJzXG2B05Fc86LkU8yKJx4fVSX2sa15lig4JQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvfedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculddutddmnecujfgurhepfhgfhffvvefuffgjkfggtgesghdtreer tderjeenucfhrhhomhepvfgrnhhgohhnohhvuceothhnsegvmhhlrdgttgeqnecuggftrf grthhtvghrnhepkeffjedttdeileegleeileekvdegfeejkeevjeevgeejleejhedvtedv ffdvleeinecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepthhnsegvmhhlrdgttg X-ME-Proxy: Feedback-ID: i9b414626:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 14:42:25 -0400 (EDT) References: <8735g5se3v.fsf@eml.cc> <87v8t1qz9w.fsf@eml.cc> <87tu8lpg2l.fsf@eml.cc> <87a6ack2dn.fsf@d2.com> User-agent: mu4e 1.6.11; emacs 28.1.50 From: Tangonov To: Fredrik Salomonsson Cc: GUIX Help Subject: Re: Guix home user-level shepherd services Date: Thu, 16 Jun 2022 11:36:01 -0700 In-reply-to: <87a6ack2dn.fsf@d2.com> Message-ID: <874k0k1mcz.fsf@eml.cc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=66.111.4.28; envelope-from=tn@eml.cc; helo=out4-smtp.messagingengine.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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=1655405271; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cmRWZ527f+ujgLyVp1AbdxP6bMRuwZzbOeIJDK96Ffk=; b=hT5rittwk0hXHWYmlg2iLS9+VlkkOhSjvA9NQCuxuqcbs9KbPAYC+0dxa35VwYccaTEibP mAZ1AYf2iujeFYICbvDbwN0xM4ZaPIMIyvzQY01WXZ+Tu4GVdYRiLTfgOq2AtEIC6RWyFY so55LWO44v9d/rhnfyPDS/UzJTm10kaqF0xv3mZkON5OyBlz7H63lOpfNIo4KKoPGRw1NA NbQW8c8BjbZJWm2s4ScCtio8IXuRNJI/sI5f9/bt8xey68t7uqut908AnYAuwSFERlrL56 2KXKt9loCuejept9gKnDYjoa5PZBKletG67Est5cczKUJ3UmdcuDQqjaakDanQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655405271; a=rsa-sha256; cv=none; b=rY233K7yO5kFrVQ4J1u5G/k42YAq6cYWr5FFZ2kVO/hxslo4vUL0BuusxJuLaHWBXiklwe bOwPuSxxkLEgoxIDm/+0CYOyBNJyalCNi7RzoIhddIzTUQY6DlYBd5XEwr4aRbqnWro1qk seP7+R2e40OhyQ9F8wrixG9vFJNxG8xDRiFYYIQav9sSJBIu9/BFTn/Ib5ZQNe8mMa14HK vOSSIkIDTt3fgtZjdmg1AoSH5FQEMj7g9Cyzkz6k4tL8T3R9b4QNzaVeBSJNG/T+g7bSmI xV4zF2pEhNqCpqyB3mTbrcBEzPcWsgtbFrCpV5Gzaws1sdbOaO0xeLMgkS75eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=eml.cc header.s=fm2 header.b=BGlv6ZDF; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b=AYqrGVNB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eml.cc (policy=none); 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: 3.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=eml.cc header.s=fm2 header.b=BGlv6ZDF; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b=AYqrGVNB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eml.cc (policy=none); 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: C08612DC9E X-Spam-Score: 3.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: XAMyzBNUs397 --===-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Thanks Fredrik! I really struggle with subtle details that are a few paragraphs=20 deep, and so, I am embarassed. If anyone else is reading this for reference: I should not have=20 set =3D#:user #:t=3D for =3Dmake-forkexec-constructor=3D. The =3D#:user=3D= =20 keyword expects a string. My user is implicitly when left with the=20 default value. If I may say so, this has been easier to learn than systemd=20 services. After many years of mostly failing to use systemd=20 properly, I have not yet mastered it. My user-level services are running :) Fredrik Salomonsson writes: > 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=20 >> 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=20 >> 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=20 >> #~(make-forkexec-constructor >> "syncthing" #:user=20 >> #:t)) >> (stop #~(make-kill-destructor)) >> (documentation >> "Synchronize folders to other=20 >> device")) >> (shepherd-service >> (provision '(pantalaimon)) >> (start=20 >> #~(make-forkexec-constructor >> "pantalaimon" #:user=20 >> #: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=20 > COMMAND > argument expects a list of strings [0]. Try and see if this=20 > works: > > #+BEGIN_SRC scheme > (service home-shepherd-service-type > (home-shepherd-configuration > (services (list > (shepherd-service > (provision '(syncthing)) > (start=20 > #~(make-forkexec-constructor > (list "syncthing")=20 > #:user #:t)) > (stop #~(make-kill-destructor)) > (documentation > "Synchronize folders to other=20 > device")) > (shepherd-service > (provision '(pantalaimon)) > (start=20 > #~(make-forkexec-constructor > (list "pantalaimon")=20 > #:user #:t)) > (stop #~(make-kill-destructor)) > (documentation > "Crypto back-end server for=20 > ement.el")))))) > #+END_SRC > > [0]=20 > https://www.gnu.org/software/shepherd/manual/html_node/Service-De_002d-an= d-Constructors.html#Service-De_002d-and-Constructors --=-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI+BAEBCAAoFiEEKJsdbYLEnLRT8Wla3Gymm30theYFAmKreY8KHHRuQGVtbC5j YwAKCRDcbKabfS2F5hv8EACZE/D43TsUByeWToxwxL4pb8j968vbZdjWp2uyjQpv VPXRJC8qdlTzqH+x05xYwTO/Uew3W4aKxQeLHM6gUstci0MWD8/C0c/C/tNfSu0q 4JGy6bBGKXhciiJkbOBPLQFJ4WZ2lLAMfjhbfLykqHTOi8irmHqMnecFsueQcKLB PGgI3WtxrjxLt7pl5wLIPdQGlXzBAdwCKVIMQ7gLdqJF6Wp2/Ki5BVTmFwZKAAle BkoCX9SUqxMv7b2QXlS+sa1hgtSldT4H9Q0ujA1sSuoUb9d0/v1ItfgzaulB2gIG ntn9M8nNTvx2ME7sKHpdoEuxoqqt8JfNwfh+OEptTGz70Ms9h13WK4x9LnNlXJHp j2B/tn97tZ1mud0WezVUojpRlztIPx4gFNkirs6/e/YqZV2lp15rmB7EYaPAgUCj 8mqACH3ofmOEhmVjcKdPTQN/LEAJURnMd0rDmLAIni0Rrvp9I//S1ZtF9OOmcpPS 87lOYs900T/9AFmL4DqsywDzHvQ2dBSUofwOxgqS2yG3LZsAcCZCoHJpTR/yuX+r Tgk569OXUgJbtjuGPRQn9406JN4/EaxYxzCH8uvg+DzgQmMLpHJk5vAXMRe8InUk l+nfJv1J719KZbGmqx2Fi4vXbiR2cKrJoDO7wrk+bekAGUXbJqUooQgzRB7AfIbt 2g== =ww+V -----END PGP SIGNATURE----- --===-=-=--