From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Starting user services at boot Date: Wed, 15 Feb 2017 14:14:07 +0300 Message-ID: <871suz7lkw.fsf@gmail.com> References: <20170212195413.GA8296@jasmine> <878tpah1zx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdxXE-0006Q1-49 for help-guix@gnu.org; Wed, 15 Feb 2017 06:14:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdxXD-0003xL-44 for help-guix@gnu.org; Wed, 15 Feb 2017 06:14:08 -0500 In-Reply-To: <878tpah1zx.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 13 Feb 2017 10:30:10 +0100") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org Ludovic Court=C3=A8s (2017-02-13 10:30 +0100) wrote: > Hi Leo! > > Leo Famulari skribis: > >> Does anyone have advice about how to start an unprivileged user's >> services when the system boots? >> >> On other systems, I could at least invoke them in /etc/rc.local, but I'm >> not sure how to do it on GuixSD. > > Currently I run shepherd as myself, which reads from > ~/.config/shepherd/init.scm. It gets started from my ~/.xsession. I do the same but in ~/.bash-profile like this: # Start shepherd if it is not already running. [[ -z $(pgrep -U $(id --user) "^shepherd$") ]] \ && shepherd &>> $HOME/.config/shepherd/shepherd.log --=20 Alex