From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Soo Subject: Re: User-Level services Date: Sat, 9 Feb 2019 05:14:28 -0800 Message-ID: References: <1549206990.3483392.1649820064.4E571E9E@webmail.messagingengine.com> <87k1i973g9.fsf@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsSSr-0006NF-SW for help-guix@gnu.org; Sat, 09 Feb 2019 08:14:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsSSq-0003oi-7g for help-guix@gnu.org; Sat, 09 Feb 2019 08:14:37 -0500 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:44863) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsSSp-0003mw-P2 for help-guix@gnu.org; Sat, 09 Feb 2019 08:14:36 -0500 Received: by mail-pg1-x544.google.com with SMTP id y1so2794927pgk.11 for ; Sat, 09 Feb 2019 05:14:32 -0800 (PST) In-Reply-To: <87k1i973g9.fsf@gmail.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: Chris Marusich Cc: help-guix@gnu.org Thanks Chris, I wasn=E2=80=99t aware of the autostart spec so I took a look. Thanks! After= reading it I=E2=80=99m not sure it provides the retry support (among other t= hings) that a user service might provide. I would love to see something clos= er to an event triggered service than forking once and forgetting. It would be awesome if the Guix System could provide a way to configure thes= e declaratively, too. I am not saying shepherd would be the mechanism, neces= sarily either. I just think people - myself included - will probably want th= is feature.=20 Thanks again, John > On Feb 9, 2019, at 12:48 AM, Chris Marusich wrote: >=20 > John Soo writes: >=20 >> Hi Reza, >>=20 >> I=E2=80=99m not sure this is possible right now. I recently tried making a= >> service which would need the x display variable and I got stuck right >> about when I needed the logged in user. I would love to see it though. >>=20 >> Does anyone else know? >=20 > I don't think there's an easy solution that's integrated into the Guix > System (formerly known as GuixSD). Instead, the best approach is to use > any of "the usual" methods for starting up user processes. For example, > you might use the ~/.config/autostart convention: >=20 > https://freedesktop.org/wiki/Specifications/autostart-spec/ >=20 > --=20 > Chris