From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Guix shepherd user services Date: Mon, 29 Apr 2019 22:10:53 +0200 Message-ID: <87sgu0mv2b.fsf@nckx> References: <20190429195749.t2kksa5lujoafnlf@melmoth> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLCcE-0005k3-Ec for guix-devel@gnu.org; Mon, 29 Apr 2019 16:11:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLCcC-0006N4-6u for guix-devel@gnu.org; Mon, 29 Apr 2019 16:11:06 -0400 Received: from tobias.gr ([80.241.217.52]:55374) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLCcA-0006KO-4x for guix-devel@gnu.org; Mon, 29 Apr 2019 16:11:03 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id f929d889 for ; Mon, 29 Apr 2019 20:10:55 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e4822dac (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 29 Apr 2019 20:10:54 +0000 (UTC) In-reply-to: <20190429195749.t2kksa5lujoafnlf@melmoth> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tanguy, Tanguy Le Carrour wrote: > Hello Guix! > > I've just read this thread [1] on the archive and I think it=20 > would be a > great feature! Any update on the topic?! > > [1]:=20 > https://lists.gnu.org/archive/html/guix-devel/2019-02/msg00132.html > > I would love to have some services started when I log in (tor, > transmission-daemon, mpd, gpg-agent=E2=80=A6 you name them!) without=20 > having to > rely on the root user and system configuration. Note that this is already possible if you want it: ~ =CE=BB cat /home/nckx/.config/shepherd/init.scm=20 (load "services.scm") (register-services emacs gpg-agent ibus-daemon jackd) (action 'shepherd 'daemonize) ; send shepherd into background (for-each start (list emacs)) ; services to start automatically ~ =CE=BB cat /home/nckx/.config/shepherd/services.scm=20 (define emacs (make #:provides '(emacs) #:requires '() #:start (make-system-constructor "emacs --daemon") #:stop (make-system-destructor "emacsclient --eval=20 \"(kill-emacs)\""))) ;; ...much more snipped... ~ =CE=BB grep shepherd /home/nckx/.xsession=20 shepherd # user service manager The discussion is about how to add it (and user stuff in general)=20 to Guix, which is a big wriggly bag of tasty worms. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXMdaTQAKCRANsP+IT1Vt ecXCAP0cmH6YA9nXfW0xES3JEWcuozf9vjXPuo6IzYaXtfV6MwEApQAguK00i5rB lVgUxCbL6ENSAcKbTo2H3+BEUMJe/gs= =EHVL -----END PGP SIGNATURE----- --=-=-=--