From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 0/1] MPD: Install systemd service files Date: Thu, 29 Dec 2016 19:24:19 +0100 Message-ID: <87lguywq3w.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMfNM-0006yM-Lb for guix-devel@gnu.org; Thu, 29 Dec 2016 13:24:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMfNH-0000NZ-Sp for guix-devel@gnu.org; Thu, 29 Dec 2016 13:24:28 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMfNH-0000MJ-LQ for guix-devel@gnu.org; Thu, 29 Dec 2016 13:24:23 -0500 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari , guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Famulari 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=3Dv0.19.21 > > It works for me!=20 > > 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 /etc/systemd/{user,system} to the respective system locations. Btw, Shepherd works in user mode too ;-) Here is a config that defines a service for "mcron": $ cat ~/.config/shepherd/init.scm (define mcron (make #:provides '(mcron) #:start (make-forkexec-constructor (list "/run/current-system/profile/bin/mcron")) #:stop (make-kill-destructor))) (register-services mcron) I guess it would be better to re-use the Guix service definition, but haven't gotten that far yet. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlhlVNMACgkQoqBt8qM6 VPolcAf+ILiTqsRICYj2Y+PeuPlU1JdXb6UTGiBwreQj/E9Uiikr5Jp+lUYnPeLS VCqX2LZiBs7VKpnVI17jRTWHDPV8CvR9WXgaSol3vYlZ7gkWfUCUzSiGRfZyRCLr 4h2P09rl1Pz7aw5j0jnwiqbhzwydt+ibraQXd5+tZjwLaCyJ5HdH13/Kizr7Ag24 fnXjobMqyO7/cOEYQnPEylDYuIRMJ9mxYfW+BPEFB0+t76661hE3IWLn5M45d4bY lcpBrrJ8L/XiIXjhSwVfgYwh0uu6ybyRK8at0lF4rthXKEf2x6BJVOEEgzBlb0b8 keFskogu8KP3ry4SepOL/LatlLvJjA== =vZsc -----END PGP SIGNATURE----- --=-=-=--