On Thu, Dec 29, 2016 at 07:24:19PM +0100, Marius Bakke wrote: > Leo Famulari <[email protected]> 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.
signature.asc
Description: PGP signature
