From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: modular shepherd config Date: Fri, 10 Apr 2020 00:20:55 +0300 Message-ID: <20200409212055.GW1518@E5400> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ng9nCnWcMXS7n1y7" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43198) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMec8-0003R4-Qr for guix-devel@gnu.org; Thu, 09 Apr 2020 17:21:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMec6-0002KA-Rk for guix-devel@gnu.org; Thu, 09 Apr 2020 17:21:32 -0400 Received: from flashner.co.il ([178.62.234.194]:39268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jMec5-0002HO-Tg for guix-devel@gnu.org; Thu, 09 Apr 2020 17:21:30 -0400 Received: from localhost (unknown [141.226.9.17]) by flashner.co.il (Postfix) with ESMTPSA id 4FA22402C5 for ; Thu, 9 Apr 2020 21:21:28 +0000 (UTC) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --Ng9nCnWcMXS7n1y7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A while ago I split my personal shepherd init.scm into a bunch of files and I wanted to document it somewhere for others to see also. Any suggestion where I should put it? Shepherd manual? guix-cookbook? (ins)efraim@E5400 ~$ tree .config/shepherd/ =2Econfig/shepherd/ =E2=94=9C=E2=94=80=E2=94=80 init.d =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 dropbox.scm =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 fccache.scm =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 gnupg.scm =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 guix.scm =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 kdeconnect.scm =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 mbsync.scm =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 syncthing.scm =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 vdirsyncer.scm =E2=94=9C=E2=94=80=E2=94=80 init.scm =E2=94=94=E2=94=80=E2=94=80 shepherd.log (ins)efraim@E5400 ~$ cat .config/shepherd/init.scm (use-modules (shepherd service) ((ice-9 ftw) #:select (scandir))) ;; Load all the files in the directory 'init.d' with a suffix '.scm'. (for-each (lambda (file) (load (string-append "init.d/" file))) (scandir (string-append (dirname (current-filename)) "/init.d") (lambda (file) (string-suffix? ".scm" file)))) ;; Send shepherd into the background (action 'shepherd 'daemonize) --=20 Efraim Flashner =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 --Ng9nCnWcMXS7n1y7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl6PkbMACgkQQarn3Mo9 g1EISRAAizKjl0iFiT3R1xTe93XxTGTcrIRtS28ZwG141Avdg9yqRXK04mfGJDkU Ftn65LeiwLES5bZ+h1TJMbN7rZCKzdb12HRmbBwFY91auph4fNvPYRFEU4KMm/Lf UGY2OLRrCSI45DWl19ylme2vBqT38/KJIzbNSKrn4uk2Uoo492mFCkcbUrHQojUs WBKJV9CTK1cW00TxMz5cbu37QBPiPCKKgDkazReSXNIqdZZtC3A4GUf+N2CybxXN BHzuQC76JhSgOamI83bpZUde89jI+2oK7ZzPcx4sL8aQYPD1E2Gn6bzXZjR4KHW4 d0zcIs0Le7dojfn2E+pQKmc+Ykz86HXNpcY5i6iFMFnW9+OWdY9VndgMWm1aSZ+2 Tc2MXC2qzSX4FrYktZPG2lHLfsTutb+Y7RzV/4ukAeVOa7qH5KldXZbHmohrtpj2 5D2eJDQb7qwUmjp1EYrKINuO8ymDHchmxwQjcnsrxgc0DoIk27HHTQ7PrKxkX6Q7 +GCNvnf/V66epUj2R4Z0Pexv/5RPQ0ZS/brer62sRSenGNq3V75WFrzSlpyuSqKf rdwo75Y9z+d2Y3Wax3oKqSSnC7rXEKfVz58l4lCijkVZ3diEcMujg5Fsg6U/T2LG ZGcAKyjCqrIDC5Dzlwb3AGW+b3mjt+dYKINZiPtNUPFBgxZnJtY= =jnAr -----END PGP SIGNATURE----- --Ng9nCnWcMXS7n1y7--