all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gábor Boskovits" <boskovits@gmail.com>
To: Hamzeh Nasajpour <h.nasajpour@pantherx.org>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: shepherd as normal user
Date: Sat, 5 Oct 2019 09:37:18 +0200	[thread overview]
Message-ID: <CAE4v=phg-07X5uT2f2Drezb4iKEPVSbr_stmAEdjAyzYWcz=DA@mail.gmail.com> (raw)
In-Reply-To: <19cba65c-8cd0-469c-87e2-b0e46ca22f0a@www.fastmail.com>

Hamzeh Nasajpour <h.nasajpour@pantherx.org> ezt írta (időpont: 2019. okt.
5., Szo 7:39):

> > I believe you can add it to some shell startup files, or session startup
> script. It depends on you environment.
>
> I'm looking to find a way to configure the `shepherd` with `config.scm`
> (system reconfigure ...).
> The startup script is a workaround but it has some problems, for example,
> multi-login/multi instance of shepherd and so on.
>
> Do you have any idea?
>
It is still a workaround, but for example for gpg-agent I right now simply
start a new instance that fails with a warning that it is already running.
I don't know if shepherd does the same thing, but it would be nice. If not
you could check for the existence of the socket manually before starting.
One way to get user configs in guix is using the guix-home-manager, but
that is experimental. It misses a lot of configuration modules, and takes a
very radical approach by making the home directory a guix profile.

>
>
> On Fri, Oct 4, 2019, at 6:49 PM, Gábor Boskovits wrote:
> > Hello,
> >
> > Hamzeh Nasajpour <h.nasajpour@pantherx.org> ezt írta (időpont: 2019.
> > okt. 4., Pén 10:31):
> > > Thanks for your reply.
> > >
> > >  It's a good example. But my main problem is running `shepherd` as
> > normal user automatically.
> > I believe you can add it to some shell startup files, or session
> > startup script. It depends on you environment.
> > >
> > >  For now, I've to run it manually.
> > >
> > >
> > >
> > >  On Fri, Oct 4, 2019, at 4:28 AM, ison wrote:
> > >  > On Fri, Oct 04, 2019, Hamzeh Nasajpour wrote:
> > >  > > Hi,
> > >  > >
> > >  > > I'm going to run `shepherd` as a normal user automatically (at
> startup). How can I do that?
> > >  > >
> > >  > > I know the `shepherd` will be run as root with PID=1 in the init
> system, but I have some services that should be run by `shepherd` for
> normal users.
> > >  > >
> > >  > > Regards,
> > >  > > Hamzeh
> > >  >
> > >  > It doesn't seem to be documented anywhere I could find, but there
> was a
> > >  > simple example posted to this mailing list a while back that helped
> me:
> > >  > https://lists.gnu.org/archive/html/guix-devel/2019-04/msg00580.html
> > >  >
> > Best regards,
> > g_bor
>
Best regards,
g_bor

>

      reply	other threads:[~2019-10-05  7:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-03 21:59 shepherd as normal user Hamzeh Nasajpour
2019-10-04  0:58 ` ison
2019-10-04  8:30   ` Hamzeh Nasajpour
2019-10-04 15:19     ` Gábor Boskovits
2019-10-05  5:39       ` Hamzeh Nasajpour
2019-10-05  7:37         ` Gábor Boskovits [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='CAE4v=phg-07X5uT2f2Drezb4iKEPVSbr_stmAEdjAyzYWcz=DA@mail.gmail.com' \
    --to=boskovits@gmail.com \
    --cc=h.nasajpour@pantherx.org \
    --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.