From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.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 uEqkF7gVr2LOxwAAbAwnHQ
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 19 Jun 2022 14:25:28 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id QNaQF7gVr2ICRwAA9RJhRA
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 19 Jun 2022 14:25:28 +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 EE15E360AD
	for <larch@yhetil.org>; Sun, 19 Jun 2022 14:25:27 +0200 (CEST)
Received: from localhost ([::1]:60220 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	id 1o2tzb-0001sv-5L
	for larch@yhetil.org; Sun, 19 Jun 2022 08:25:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44490)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <efraim@flashner.co.il>)
 id 1o2tyw-0001sj-IL
 for help-guix@gnu.org; Sun, 19 Jun 2022 08:24:46 -0400
Received: from flashner.co.il ([178.62.234.194]:37878)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <efraim@flashner.co.il>) id 1o2tyv-000278-2t
 for help-guix@gnu.org; Sun, 19 Jun 2022 08:24:46 -0400
Received: from localhost (unknown [141.226.14.191])
 by flashner.co.il (Postfix) with ESMTPSA id 264D34004A;
 Sun, 19 Jun 2022 12:24:11 +0000 (UTC)
Date: Sun, 19 Jun 2022 15:23:38 +0300
From: Efraim Flashner <efraim@flashner.co.il>
To: Tangonov <tn@eml.cc>
Cc: Fredrik Salomonsson <plattfot@posteo.net>,
	GUIX Help <help-guix@gnu.org>
Subject: Re: Guix home user-level shepherd services
Message-ID: <Yq8VShshLIUpdC10@3900XT>
Mail-Followup-To: Tangonov <tn@eml.cc>,
 Fredrik Salomonsson <plattfot@posteo.net>,
 GUIX Help <help-guix@gnu.org>
References: <8735g5se3v.fsf@eml.cc> <87v8t1qz9w.fsf@eml.cc>
 <87tu8lpg2l.fsf@eml.cc> <87a6ack2dn.fsf@d2.com>
 <874k0k1mcz.fsf@eml.cc>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="7QvMfFxBSRmuql7v"
Content-Disposition: inline
In-Reply-To: <874k0k1mcz.fsf@eml.cc>
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Received-SPF: pass client-ip=178.62.234.194;
 envelope-from=efraim@flashner.co.il; helo=flashner.co.il
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-guix>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=subscribe>
Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org
Sender: "Help-Guix" <help-guix-bounces+larch=yhetil.org@gnu.org>
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=1655641528;
	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; bh=1sLhsE299eAirm3QHzsrGLsWCbFxyKePpkmTk9WLyD0=;
	b=qKpz8iPs+XpsMVvHUloaFDT/FusT4Trr25nbFqN4Il1ivrGIZEFZqWSq8AQC81YB/cLvVB
	y0rrbfyqZSRkg55mNjqPoCvEVUInx7MWs+RyjyaGhha8jXT5Tt0TphUkHQ3EJnfq0mffTc
	EDsT0QyDWLUxcDYdH0WxHpxyOwziJVXhjl2e58P0lE/wIkaPpIPvCYCW8/ah50ACB/PnXA
	iI2jILJ1p6TkUdjwcavwFkvfKzBXaKhpmE4pdK1t98J6yQPnaA6hwC+nOttcuVSvqI/tyv
	91XOlMnoqhMZMPQrVga7bK0MdKn9of3E+3MI+KmaNuK55MS2HYefps1WprHCFw==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655641528; a=rsa-sha256; cv=none;
	b=i1wdYSaM3agQ2u8YTO+6GWKai9n/4MqURTtN0RDY2VjDIE3mnSEqntWNnXXVgPJuQeYZCY
	wFhwshsUrswWhpwMQliViZRxpLTz/ujI2uqSOJioVyPicKAX2SMFPnniP0LSKRHhdVcQ5E
	0WPXylM7f25rzMWiIp5FuQd+JV8c3B6DwSugiDk96goVkDcqJk7O67mxJM3htWVzieZ7rM
	Proo8vZGiRs2D6xe3oDLVxyboSGPb9cxeQqF0hfz7pi9QOMjCh+EfHJlwWT1tpKVC1+6wQ
	ckDyNqq/bksy3XiPYKycBMY1vD3DjonCB7t7spT/8UYV74Q/EUCtsVAasG6BRw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=none;
	dmarc=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: -2.89
Authentication-Results: aspmx1.migadu.com;
	dkim=none;
	dmarc=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: EE15E360AD
X-Spam-Score: -2.89
X-Migadu-Scanner: scn1.migadu.com
X-TUID: WM735O1uwbZx


--7QvMfFxBSRmuql7v
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 16, 2022 at 11:36:01AM -0700, Tangonov wrote:
> Thanks Fredrik!
>=20
> I really struggle with subtle details that are a few paragraphs deep, and
> so, I am embarassed.
>=20
> If anyone else is reading this for reference: I should not have set =3D#:=
user
> #:t=3D for =3Dmake-forkexec-constructor=3D. The =3D#:user=3D keyword expe=
cts a string.
> My user is implicitly when left with the default value.
>=20
> If I may say so, this has been easier to learn than systemd services. Aft=
er
> many years of mostly failing to use systemd properly, I have not yet
> mastered it.
>=20
> My user-level services are running :)
>=20

I'm a bit late, but I'm glad to see that its working for you. Here's
what I have in my user services for running syncthing:

(define %syncthing-user-service
  (shepherd-service
    (documentation "Run `syncthing' without calling the browser")
    (provision '(syncthing))
    (start #~(make-forkexec-constructor
               (list #$(file-append (S "syncthing") "/bin/syncthing")
                     "-no-browser")
               #:log-file (string-append #$%logdir "/syncthing.log")))
    (stop #~(make-kill-destructor))
    (respawn? #t)))

I have %logdir defined elsewhere as:
(define %logdir
  (or (getenv "XDG_LOG_HOME")
      (format #f "~a/.local/var/log"
              (getenv "HOME"))))

and S is specification->package.

--=20
Efraim Flashner   <efraim@flashner.co.il>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--7QvMfFxBSRmuql7v
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmKvFUcACgkQQarn3Mo9
g1EgGw//Vl/+aQgkbGtrpZGNex5K9cPgutTQGvOp650IAQ0q6+TQJ2RG6igyIJdF
hqTPpz4xfNqMnI+kkp+CKZJOd3/GpfQgoyTEMXai006dxp/lzespsz8cOx2bB8EN
6luM1nNfzPrszg/OG97NyQ934QBN2+gXskqW9+BgKyu1IbBRT5/Q7JFEFZL3gy9C
CTWvI/m7esSUxzELmI1YlxcpVs+n6CLFVWfJeGVhD7CJWJhwZnyPsYo1Dmm6LZce
MfwMV+PvnL8uIylzM3mVs9lICHEgNV9O9JoB1JkaLxH0J4P2MmLhVFQ/8M8P16Wi
xHcY0nC/a2N4f03Fd0oX6FqCBrrkp57BQwVPbCMA9Ppyqpm/yukpLZF6ZV71EZ15
RHUBEQtj7yLERjCw7V7M9bQk/Wqh+t5jlXu8rtfPLqrPEAtcw4t+RZW2FoP2oFrG
gVGSAGX+T3HoW9dtUjauN3zJrojIGHU7IwxIEFTzPPBv8UoXCaYypnomGD1hKxnt
dq1VpESqKTefQBtBb8ix4fW01QSdcp7u1CysSiKMpUasNFMnHBHRXTrEm69ViDmO
LD6E4Gkx4Wxm0aPMWBpXqaF8pyrLHbqz4rN1+n/mL1JjDu7LlQLmY1emX68S04SY
Rol4CFOvuO+NUqv3ur/1wEoh0NwXjHoK/bPtdMo2qXihP79FuJE=
=j520
-----END PGP SIGNATURE-----

--7QvMfFxBSRmuql7v--