From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: shepherd as normal user Date: Sat, 5 Oct 2019 09:37:18 +0200 Message-ID: References: <7fe0ffe0-cbc3-480b-9d4d-b84d890a62a6@www.fastmail.com> <20191004005857.3ku6m62sfcjbww57@n0> <7e1c2050-e081-43dc-8382-de8cece63db0@www.fastmail.com> <19cba65c-8cd0-469c-87e2-b0e46ca22f0a@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54860) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGedD-0001QI-Cq for help-guix@gnu.org; Sat, 05 Oct 2019 03:37:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGedB-0000NR-RD for help-guix@gnu.org; Sat, 05 Oct 2019 03:37:35 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGedB-0000Kt-Jt for help-guix@gnu.org; Sat, 05 Oct 2019 03:37:33 -0400 Received: by mail-ed1-x530.google.com with SMTP id h33so7972088edh.12 for ; Sat, 05 Oct 2019 00:37:33 -0700 (PDT) In-Reply-To: <19cba65c-8cd0-469c-87e2-b0e46ca22f0a@www.fastmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Hamzeh Nasajpour Cc: help-guix Hamzeh Nasajpour ezt =C3=ADrta (id=C5=91pont: 20= 19. okt. 5., Szo 7:39): > > I believe you can add it to some shell startup files, or session startu= p > 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=C3=A1bor Boskovits wrote: > > Hello, > > > > Hamzeh Nasajpour ezt =C3=ADrta (id=C5=91pont= : 2019. > > okt. 4., P=C3=A9n 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=3D1 in the in= it > 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 helpe= d > me: > > > > https://lists.gnu.org/archive/html/guix-devel/2019-04/msg00580.htm= l > > > > > > Best regards, > > g_bor > Best regards, g_bor >