guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/1] MPD: Install systemd service files


From: Leo Famulari
Subject: Re: [PATCH 0/1] MPD: Install systemd service files
Date: Thu, 29 Dec 2016 13:35:26 -0500
User-agent: Mutt/1.7.2 (2016-11-26)

On Thu, Dec 29, 2016 at 07:24:19PM +0100, Marius Bakke wrote:
> Leo Famulari <address@hidden> writes:
> 
> > I noticed that MPD 0.19.21 adds a systemd service file for unprivileged
> > users:
> >
> > http://git.musicpd.org/cgit/master/mpd.git/plain/NEWS?h=v0.19.21
> >
> > It works for me! 
> >
> > This patch installs both the privileged and unprivileged service files.
> >
> > I wonder, is this installation path correct? Should they be at
> >
> > ~/.guix-profile/etc/systemd[...] (my patch does this)
> 
> Yes. Unit names in managed packages should not conflict, so no further
> namespacing necessary. This way users can just sync/link units from
> <guix-profile>/etc/systemd/{user,system} to the respective system
> locations.

Good point, thank you!

> Btw, Shepherd works in user mode too ;-)

I use it myself :)

> Here is a config that defines a service for "mcron":
> 
> $ cat ~/.config/shepherd/init.scm
> (define mcron (make <service>
>                     #:provides '(mcron)
>                     #:start (make-forkexec-constructor
>                              (list "/run/current-system/profile/bin/mcron"))
>                     #:stop (make-kill-destructor)))
> (register-services mcron)

I'm glad to see this example here. It took me a long time to find an
example of a user service when I was getting started.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]