From: Csepp <raingloom@riseup.net>
To: Ben Weinstein-Raun <root@benwr.net>
Cc: help-guix@gnu.org
Subject: Re: Shepherd user services that run on startup?
Date: Fri, 29 Dec 2023 00:42:21 +0100 [thread overview]
Message-ID: <87r0j5nbba.fsf@riseup.net> (raw)
In-Reply-To: <532f5b62-c5c3-4aa5-867e-ebe2dbecc848@benwr.net>
Ben Weinstein-Raun <root@benwr.net> writes:
> 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)
Not a direct answer, but this seems similar to systemd's linger
functionality, that might be worth taking a look at.
next prev parent reply other threads:[~2023-12-28 23:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-20 21:42 Shepherd user services that run on startup? Ben Weinstein-Raun
2023-12-28 23:42 ` Csepp [this message]
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=87r0j5nbba.fsf@riseup.net \
--to=raingloom@riseup.net \
--cc=help-guix@gnu.org \
--cc=root@benwr.net \
/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.