From: Ben Weinstein-Raun <root@benwr.net>
To: help-guix@gnu.org
Subject: Shepherd user services that run on startup?
Date: Wed, 20 Dec 2023 21:42:05 +0000 [thread overview]
Message-ID: <532f5b62-c5c3-4aa5-867e-ebe2dbecc848@benwr.net> (raw)
Hello! I'm fairly new to using Guix System, and I have a lot of questions.
One is: Is it possible to run a shepherd user service at system start,
rather than at login?
My guess is that this is at least possible, by defining a system-level
service that starts a shepherd for each user. Would that work?
Anyone have tips on how to go about building this, if so? Especially:
What's the easiest way to ensure that a guix service knows the list of
users-with-login-shells on the system? And easiest way to run a
`shepherd` instance as each such user on startup? I'm working on writing
a service definition, but as this is my first from-scratch service (guix
or shepherd), and one of my first lisp projects since reading SICP 15
years ago, it's slow going (even with the reference manual and source
code of other services).
And, of course, is there a simpler way?
(I also asked this question on the r/guix subreddit, but haven't heard
anything yet, and figured I'd ask here too)
next reply other threads:[~2023-12-20 21:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-20 21:42 Ben Weinstein-Raun [this message]
2023-12-28 23:42 ` Shepherd user services that run on startup? Csepp
2023-12-29 2:56 ` Hipólita Yarona
2024-01-01 22:04 ` Ben Weinstein-Raun
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=532f5b62-c5c3-4aa5-867e-ebe2dbecc848@benwr.net \
--to=root@benwr.net \
--cc=help-guix@gnu.org \
/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.