From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hamzeh Nasajpour" Subject: Re: shepherd as normal user Date: Sat, 05 Oct 2019 09:09:36 +0330 Message-ID: <19cba65c-8cd0-469c-87e2-b0e46ca22f0a@www.fastmail.com> References: <7fe0ffe0-cbc3-480b-9d4d-b84d890a62a6@www.fastmail.com> <20191004005857.3ku6m62sfcjbww57@n0> <7e1c2050-e081-43dc-8382-de8cece63db0@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]:46267) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGcnR-0003sN-RX for help-guix@gnu.org; Sat, 05 Oct 2019 01:40:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGcnQ-0003M2-4r for help-guix@gnu.org; Sat, 05 Oct 2019 01:40:01 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41375) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGcnP-0003J8-RS for help-guix@gnu.org; Sat, 05 Oct 2019 01:40:00 -0400 In-Reply-To: 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: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Cc: help-guix > I believe you can add it to some shell startup files, or session start= up script. It depends on you environment. I'm looking to find a way to configure the `shepherd` with `config.scm` = (system reconfigure ...).=20 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? On Fri, Oct 4, 2019, at 6:49 PM, G=C3=A1bor Boskovits wrote: > Hello, >=20 > Hamzeh Nasajpour ezt =C3=ADrta (id=C5=91pon= t: 2019.=20 > okt. 4., P=C3=A9n 10:31): > > Thanks for your reply. > >=20 > > It's a good example. But my main problem is running `shepherd` as=20= > normal user automatically. > I believe you can add it to some shell startup files, or session=20 > startup script. It depends on you environment. > >=20 > > For now, I've to run it manually.=20 > >=20 > >=20 > >=20 > > On Fri, Oct 4, 2019, at 4:28 AM, ison wrote: > > > On Fri, Oct 04, 2019, Hamzeh Nasajpour wrote: > > > > Hi, > > > >=20 > > > > I'm going to run `shepherd` as a normal user automatically (at = startup). How can I do that? > > > >=20 > > > > I know the `shepherd` will be run as root with PID=3D1 in the i= nit system, but I have some services that should be run by `shepherd` fo= r normal users.=20 > > > >=20 > > > > Regards, > > > > Hamzeh > > >=20 > > > 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 help= ed me: > > > https://lists.gnu.org/archive/html/guix-devel/2019-04/msg00580.ht= ml > > > > Best regards, > g_bor