:: Re: [DNG] User services (UPDATE 2)
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Martin Steigerwald
Date:  
À: dng
Anciens-sujets: Re: [DNG] User services (UPDATE 1)
Sujet: Re: [DNG] User services (UPDATE 2)
Martin Steigerwald - 11.05.19, 11:00:
> Martin Steigerwald - 10.05.19, 21:12:
> > Do you remember the days where people believed in rough consensus
> > and
> > running code? :) It was before my time here on Earth, but whatever…
> >
> > tada… welcome to user services:
> >
> > https://git.devuan.org/WIP-init/user-services/blob/master/README.md
>
> So I updated it already:
> - Changed service directory default to ~/.service (instead of
> ~/.services) to more closely match system-wide /etc/service
> - Made location of directory configurable (in install-or-update.sh)
> - Logging now works
>
> So please just do
>
> mv ~/.services ~/.service
>
> in case you used it before.
>
> Make sure you have 8400c3c55fa7cffacbb4be1a43b0962696029dcc or a later
> commit.
>
> And yeah, at some time there will be a changelog.


As of fa0f445120adf9e2b25c2c91cdf201b514a16bc2 location of user service
directory is now officially configurable, but beware of this note in
README.md:

"If you like to use another directory then run it as:

    SERVICEDIR='DIRECTORY' ./install-or-update.sh


*NOTE*: For compatibility with future versions, please make sure to set
that environment variable in your shell profile in case you like to use a
different directory."

Thanks,
Martin

> > % userservice list
> > evolution-addressbook-factory
> > evolution-calendar-factory
> > evolution-source-registry
> > evolution-user-prompter
> > pulseaudio
> > redshift
> >
> > % userservice enable evolution-user-prompter
> >
> > % ps aux | grep "[e]volution"
> > martin   10495  0.0  0.0   2156   744 ?        S    21:01   0:00
> > runsv evolution-user-prompter martin   10497  4.4  0.3 443308 53076
> > ?> 
> >  Sl   21:01   0:00 /usr/lib/evolution/evolution-user-prompter

> >
> > % userservice enabled
> > evolution-user-prompter
> > pulseaudio
> > redshift
> >
> > % userservice disable evolution-user-prompter
> > % ps aux | grep "[e]volution"
> >
> > % userservice enabled
> > pulseaudio
> > redshift
> >
> >
> > And now feel free already to contribute your own services. :)
> >
> > I welcome merge requests.
> >
> >
> > There are quite some ideas on how to improve this initial proof of
> > concept: - Make it work out of the box with .xprofile (or how that
> > is
> > called). /me looking to Evilham now :)
> > - Make it work with other desktop environments out of the box
> > - Make it handle groups of services in a clean and simple way
> > - Make it work with s6 alternatively (may just need replacing
> > runsvdir) - And of course add more services, …
> > - including any of those relevant in /usr/lib/systemd/user/
> > - Putting it into a package. I am willing to package it at a later
> > point in time.
> >
> >
> > When discussing this, please make sure doing so constructively.
> >
> >
> > Thanks a lot to Evilham for coming up with the idea to use runit for
> > user services and for providing the initial service directories for
> > the four services to make Evolution work.
> >
> >
> > Now let's make more out of this by the power of together…
> >
> > and of course enjoy using it.
> >
> > Thanks.



--
Martin