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
Date: Sun, 19 Jun 2022 15:23:38 +0300 [thread overview]
Message-ID: <Yq8VShshLIUpdC10@3900XT> (raw)
In-Reply-To: <874k0k1mcz.fsf@eml.cc>
[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]
On Thu, Jun 16, 2022 at 11:36:01AM -0700, Tangonov wrote:
> Thanks Fredrik!
>
> I really struggle with subtle details that are a few paragraphs deep, and
> so, I am embarassed.
>
> If anyone else is reading this for reference: I should not have set =#:user
> #:t= for =make-forkexec-constructor=. The =#:user= keyword expects a string.
> My user is implicitly when left with the default value.
>
> If I may say so, this has been easier to learn than systemd services. After
> many years of mostly failing to use systemd properly, I have not yet
> mastered it.
>
> My user-level services are running :)
>
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.
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2022-06-19 12:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 23:18 Guix home user-level shepherd services Tangonov
2022-06-15 23:28 ` Tangonov
2022-06-16 1:09 ` Tangonov
2022-06-16 16:19 ` Fredrik Salomonsson
2022-06-16 18:36 ` Tangonov
2022-06-16 21:45 ` Fredrik Salomonsson
2022-06-19 12:23 ` Efraim Flashner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yq8VShshLIUpdC10@3900XT \
--to=efraim@flashner.co.il \
--cc=help-guix@gnu.org \
--cc=plattfot@posteo.net \
--cc=tn@eml.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.