Re: blog post about shepher user services

2021-05-22 Thread Adriano Peluso
ean >   https://guix.gnu.org/en/blog/2020/gnu-shepherd-user-services/ > instead? yes, I pasted the wrong one, sorry > > FWIW, $XDG_CONFIG_DIR should be $XDG_CONFIG_HOME, I myself always mix > those up as well.   Good to know > As far as mcron integration is concerned, it does

blog post about shepher user services

2021-05-22 Thread Leo Prikler
Hi, the blog post you've linked https://guix.gnu.org/en/blog/2017/running-system-services-in-containers/ seems to neither contain mentions of XDG_CONFIG_DIR, nor mcron. Did you mean https://guix.gnu.org/en/blog/2020/gnu-shepherd-user-services/ instead? FWIW, $XDG_CONFIG_DIR shou

blog post about shepher user services

2021-05-22 Thread Adriano Peluso
There's this blog post: https://guix.gnu.org/en/blog/2017/running-system-services-in-containers/ I have 2 observations about it 1) it mentions a XDG_CONFIG_DIR environment variable. But on my Ubuntu desktop, I find a XDG_CONFIG_DIRS (note the final S) variable.  This could be confusing to some

Re: Guix shepherd user services

2019-05-08 Thread Tanguy Le Carrour
Hi Tobias, hi Guix! Le 05/04, Tobias Geerinckx-Rice a écrit : > My apologies for not replying sooner. I fail at managing the scarce free > time I have these days. I'm not much better, so no need to apologise! ;-) > Tanguy Le Carrour wrote: > No, you're right, I'd simply never checked this bef

Re: Guix shepherd user services

2019-05-04 Thread Tobias Geerinckx-Rice
Tanguy, My apologies for not replying sooner. I fail at managing the scarce free time I have these days. Tanguy Le Carrour wrote: Cool! :-) Did you write the "much more snipped" by yourself? I snipped some definitions for other services, like ibus-daemon and gpg-agent, because I haven

Re: Guix shepherd user services

2019-05-04 Thread Tanguy Le Carrour
Hello! Le 05/01, Tanguy Le Carrour a écrit : > Le 04/29, Tobias Geerinckx-Rice a écrit : > > ~ λ cat /home/nckx/.config/shepherd/init.scm (load "services.scm") > > (register-services emacs gpg-agent ibus-daemon jackd) > > (action 'shepherd 'daemonize) ; send shepherd into background > > (for

Re: Guix shepherd user services

2019-05-01 Thread Tanguy Le Carrour
Hi Tobias Thanks for your answers! Le 04/29, Tobias Geerinckx-Rice a écrit : > > I would love to have some services started when I log in […] > Note that this is already possible if you want it: Reading the Shepherd documentation, I was expecting that something like this was possible, but, corr

Re: Guix shepherd user services

2019-04-29 Thread Tobias Geerinckx-Rice
Tanguy, Tanguy Le Carrour wrote: Hello Guix! I've just read this thread [1] on the archive and I think it would be a great feature! Any update on the topic?! [1]: https://lists.gnu.org/archive/html/guix-devel/2019-02/msg00132.html I would love to have some services started when I log in (

Re: Guix shepherd user services

2019-04-29 Thread Tanguy Le Carrour
Hello Guix! I've just read this thread [1] on the archive and I think it would be a great feature! Any update on the topic?! [1]: 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

Re: User Services

2019-04-19 Thread Pierre Neidhardt
Joshua Branson writes: > Can you describe user services a little more for me? It would be nice > to have the shepherd auto start my emacs... Then I could connect via > emacsclient. What's the status on that? Some patches have been sent, but there is quite some work to be do

Re: User Services

2019-04-19 Thread Joshua Branson
Pierre Neidhardt writes: > Fantastic! > > This was one of the missing features for user services (e.g. a > "sync-my-data" service that users would invoke manually). Can you describe user services a little more for me? It would be nice to have the shepherd auto start my

Re: Guix shepherd user services

2019-02-10 Thread Gábor Boskovits
Hello Pierre, > It would also make it possible to fully _initialize_ a user profile (just like > we initialize the operating-system) with the desired files. For instance, a > service could synchronize git repositories (e.g. your dotfiles), deploy it, > synchronize your emails, generate the mlocat

Re: how to fix state-broken affected user services? (Re: GNOME 3.30: help needed!)

2019-01-11 Thread Ricardo Wurmus
Giovanni Biscuolo writes: > plz could you confirm what did you deleted to make GNOME run again? > application_state file or the whole directory? I deleted the whole directory. I *also* reset my dconf customizations, but this was not sufficient. I had to delete that directory. I’ll look for

Re: how to fix state-broken affected user services? (Re: GNOME 3.30: help needed!)

2019-01-11 Thread Giovanni Biscuolo
Hi Ricardo, plz could you confirm what did you deleted to make GNOME run again? application_state file or the whole directory? Ricardo Wurmus writes: [...] >> please Ricardo could you attach the relevant debug info? > > I don’t have any debug info other than what I posted. I didn’t look at >

Re: how to fix state-broken affected user services? (Re: GNOME 3.30: help needed!)

2019-01-11 Thread Ricardo Wurmus
Hi Giovanni, >> Success! GNOME 3.30 works just fine. The gnome-shell segfaulted(!) >> because of stale state > > this is one of the worst bugs a user can experience, and very few users > are able to debug it properly (and experienced users like me find it > very time wasting to debug them) Ye

how to fix state-broken affected user services? (Re: GNOME 3.30: help needed!)

2019-01-11 Thread Giovanni Biscuolo
Hi all, Ricardo Wurmus writes: [...] > Success! GNOME 3.30 works just fine. The gnome-shell segfaulted(!) > because of stale state this is one of the worst bugs a user can experience, and very few users are able to debug it properly (and experienced users like me find it very time wasting to

Re: Defining shepherd user services -- feedback desired

2018-02-10 Thread Chris Marusich
a user-specific Shepherd, not the root user's Shepherd? Perhaps a user profile should also have a "user services activation script", like how an operating system declaration has operating-system-activation-script (in gnu/system.scm)? I personally wouldn't mind if this stuff (

Re: Defining shepherd user services -- feedback desired

2018-02-05 Thread Ludovic Courtès
configuration > file. Indeed, that’s a neat hack! And it ties software and service deployment, which is great. > ;; the next two are copied from (gnu services shepherd) because: > > ;; * (gnu services shepherd)'s version of shepherd-configuration-file > ;; is for the pid1 shep

Defining shepherd user services -- feedback desired

2018-02-03 Thread Alex ter Weele
Attached is a manifest file which allows a user to write a shepherd-service like the following: (define redshift-service (shepherd-service (provision '(redshift)) (modules `((gnu packages xdisorg) ,@%default-modules)) (start #~(make-forkexec-constructor (list

Re: Invoking user shepherd; Was: Re: Defining *user* services in Guix

2017-06-13 Thread Ludovic Courtès
Hello Danny, Danny Milosavljevic skribis: > On Tue, 13 Jun 2017 10:06:16 +0200 > l...@gnu.org (Ludovic Courtès) wrote: > >> The ‘delete-file’ was to avoid EADDRINUSE but I wonder if it’s really a >> good idea. > > Not a good idea. > > We should just put the shepherd socket somewhere in /run/user

Re: Invoking user shepherd; Was: Re: Defining *user* services in Guix

2017-06-13 Thread Danny Milosavljevic
that > > shepherd will inherit. Probably not that bad if invoked early enough. > > Currently that’s what I do: my ~/.xinitrc runs shepherd and that’s it. Yeah, me too. That's how I found the bug... when I logged in to multiple seats suddenly I had a LOT of duplicate "user" services running :)

Re: Invoking user shepherd; Was: Re: Defining *user* services in Guix

2017-06-13 Thread Ludovic Courtès
Hello! Danny Milosavljevic skribis: > For a real user shepherd, it would be nice if when I logged in twice using > the same user account (without logging out in-between - so resulting in two > sessions of that user) it would still only have one shepherd instance for > that user account in tot

Re: Invoking user shepherd; Was: Re: Defining *user* services in Guix

2017-06-13 Thread Ludovic Courtès
Hello! Mathieu Othacehe skribis: > I wrote a first draft of user services a month ago. The idea here is > that guix user -r user-manifest.scm generates a script that lauches a > user shepherd. > > For instance with the following user-manifest.scm : > > (define (re

Re: Invoking user shepherd; Was: Re: Defining *user* services in Guix

2017-06-11 Thread Mathieu Othacehe
Hi Danny, > Or should we just expect the user to put a (shepherd with fix) > invocation into their HOME startup scripts like .xinitrc ? I wrote a first draft of user services a month ago. The idea here is that guix user -r user-manifest.scm generates a script that lauches a user shepherd

Invoking user shepherd; Was: Re: Defining *user* services in Guix

2017-06-10 Thread Danny Milosavljevic
Hi, I'm revisiting this topic because I want to have a dbus user bus to be available as "${XDG_RUNTIME_DIR}/bus". > > With the attached patch, it is possibe to use (gnu services herd) to > > interact with a user shepherd instance. Nice! It works! But while testing it I noticed: For a real us

Re: Defining user services in Guix.

2017-05-03 Thread Mathieu Othacehe
>> Happy hacking! :-) >> Ludo’. > > Yay! Welcome Mathieu! Thanks Ricardo and Ludo ! Pushed as 5e03b122cf295d24e01861ca942505d47f9aa59e.

Re: Defining user services in Guix.

2017-05-02 Thread Ricardo Wurmus
Ludovic Courtès writes: > Hi! > > Mathieu Othacehe skribis: > >>> Could you create an account on Savannah, add the OpenPGP public key >>> you’ll use to sign commits there, and let us know when you’re done with >>> a signed message? Looks like we should be able to increase the >>> bandwidth. :

Re: Defining user services in Guix.

2017-05-02 Thread Ludovic Courtès
Mathieu Othacehe skribis: > From caf7d9f5a7875663623b24662c1c23b99e60c5ad Mon Sep 17 00:00:00 2001 > From: Mathieu Othacehe > Date: Fri, 28 Apr 2017 17:09:53 +0200 > Subject: [PATCH] services: herd: Make %shepherd-socket-file a parameter and > export it. > > * gnu/services/herd.scm (%shepherd-s

Re: Defining user services in Guix.

2017-05-02 Thread Ludovic Courtès
Hi! Mathieu Othacehe skribis: >> Could you create an account on Savannah, add the OpenPGP public key >> you’ll use to sign commits there, and let us know when you’re done with >> a signed message? Looks like we should be able to increase the >> bandwidth. :-) > > Thanks :) I created the accoun

Re: Defining user services in Guix.

2017-05-02 Thread Mathieu Othacehe
Hi Ludo, > Neat, sounds like a good plan! Great ! > Could you create an account on Savannah, add the OpenPGP public key > you’ll use to sign commits there, and let us know when you’re done with > a signed message? Looks like we should be able to increase the > bandwidth. :-) Thanks :) I crea

Re: Defining user services in Guix.

2017-05-02 Thread Ludovic Courtès
Hello Mathieu, Mathieu Othacehe skribis: >> Agreed. A ‘guix user’ tool (or similar) could talk to the user’s >> Shepherd instance to upgrade user services like >> ‘upgrade-shepherd-services’ does in (guix scripts system). > > With the attached patch, it is possibe to us

Re: Defining user services in Guix.

2017-04-28 Thread Mathieu Othacehe
Hi, > Agreed. A ‘guix user’ tool (or similar) could talk to the user’s > Shepherd instance to upgrade user services like > ‘upgrade-shepherd-services’ does in (guix scripts system). With the attached patch, it is possibe to use (gnu services herd) to interact with a user shepherd

Re: Defining user services in Guix.

2017-04-27 Thread Ludovic Courtès
t; )) >> >> or similar :) > > While I’m not a fan of Guix-specific aliases, I think it’s not a bad > idea to use Guix for user configurations. I’m tired of having to keep > track of a set of custom configuration files scattered all over the > place, but I’m not su

Re: Defining user services in Guix.

2017-04-25 Thread Ricardo Wurmus
Mekeor Melire writes: > Mathieu Othacehe writes: > >>>> But you can start your own shepherd under your user account and have that >>>> shepherd manage user services - it's nice. >> >> Thank you Danny for the details procedure. I'll use t

Re: Defining user services in Guix.

2017-04-24 Thread Mekeor Melire
Mathieu Othacehe writes: >>> But you can start your own shepherd under your user account and have that >>> shepherd manage user services - it's nice. > > Thank you Danny for the details procedure. I'll use that for now ! > >> Surely we could do bette

Re: Defining user services in Guix.

2017-04-23 Thread Mathieu Othacehe
Hi guys, >> But you can start your own shepherd under your user account and have that >> shepherd manage user services - it's nice. Thank you Danny for the details procedure. I'll use that for now ! > Surely we could do better, like providing unprivileged users wi

Re: Defining user services in Guix.

2017-04-22 Thread Carlo Zancanaro
expects when the child dies. I've also found that shepherd doesn't properly watch a process that uses #:pid-file. I start my emacs with --daemon using shepherd and have it create a pid file, but if emacs dies shepherd doesn't restart it for me. Other than this, everything else about

Re: Defining user services in Guix.

2017-04-22 Thread Ludovic Courtès
#x27;s not being brought back up. > > But you can start your own shepherd under your user account and have that > shepherd manage user services - it's nice. That’s exactly what I do. Surely we could do better, like providing unprivileged users with a tool akin to ‘guix system recon

Re: Defining user services in Guix.

2017-04-22 Thread Danny Milosavljevic
u can start your own shepherd under your user account and have that shepherd manage user services - it's nice. Create a file ${XDG_CONFIG_HOME-.config}/shepherd/init.scm and put your services there: (use-modules (shepherd service)) (define redshift (make #:provides '(redshift) #:start ...

Defining user services in Guix.

2017-04-22 Thread Mathieu Othacehe
Hi Guix, I just a wrote a small service for redshift¹. Redshift is a program adjusting color temperature of the screen according to surroundings. This program needs to communicate to X, so DISPLAY and XAUTHORITY must be set correctly. The only way I found to make my service work is something ve