From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Guix shepherd user services Date: Sat, 04 May 2019 13:45:07 +0200 Message-ID: <87d0kysat8.fsf@nckx> References: <20190429195749.t2kksa5lujoafnlf@melmoth> <87sgu0mv2b.fsf@nckx> <20190501090058.q34wlnxhbn6k3hwg@melmoth> <20190504070718.xdt6i5475xydvh7i@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]:46258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMt6T-0000eZ-BD for guix-devel@gnu.org; Sat, 04 May 2019 07:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMt6R-0005UL-Kv for guix-devel@gnu.org; Sat, 04 May 2019 07:45:17 -0400 Received: from tobias.gr ([2001:470:7405::1]:47120) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMt6Q-0005Qt-W2 for guix-devel@gnu.org; Sat, 04 May 2019 07:45:15 -0400 In-reply-to: <20190504070718.xdt6i5475xydvh7i@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: Tanguy Le Carrour Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tanguy, My apologies for not replying sooner. I fail at managing the=20 scarce free time I have these days. Tanguy Le Carrour wrote: >> Cooooool! :-) >> Did you write the "much more snipped" by yourself? I snipped some definitions for other services, like ibus-daemon=20 and gpg-agent, because I haven't used them in a long time (didn't=20 want to risk confusing anyone with code that might've bitrotted),=20 and they don't add any new concepts to the emacs example. It's=20 more of the same. You're not missing anything. >> If yes, is it available somewhere? Else, is it documented=20 >> somewhere? >> Did you copy/paste it from another Guix file? Only in my home directory :-) No on-line dotfiles like the other=20 cool kids. I figured this much out on my own, but my use of the Shepherd's=20 probably pretty basic. Its manual isn't as far along as Guix's and, to be honest, didn't=20 make much sense to me until *after* learning what I know from=20 reading the code & good old trial and error. > I've been playing with shepherd and service configurations and=20 > it's > actually easier than I thought it would be, at least for=20 > "simple" > services. Thanks for showing me the way! :-) > > I love it so much that I started/stopped the emacs service=20 > (defined with > the snippet above) a few times. Hours of fun! Happy to have helped. > It works as expected, except for the `defunct` processes that=20 > hang > around. Each time I run `herd stop emacs`, I get a new one, as=20 > if > shepherd could not forget about the dead process. This doesn't > prevent me from re-starting the process and using the service,=20 > but > it looks=E2=80=A6 messy! > > Am I doing something wrong?! No, you're right, I'd simply never checked this before. Stopping=20 emacs gives me=E2=80=A6 Zombie emacs. And mu. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXM17QwAKCRANsP+IT1Vt eQBQAQCMe8W/kckzopJYrdX9A1jEsSkNP9ri2gRGU5IHLRl07gD+IHc4NFvkn8AF eBgIThHYOc5C59l+0NJh9XLNXB8M6wU= =ZQBn -----END PGP SIGNATURE----- --=-=-=--