From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 0/1] MPD: Install systemd service files Date: Thu, 29 Dec 2016 13:35:26 -0500 Message-ID: <20161229183526.GA18761@jasmine> References: <87lguywq3w.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMfY6-00005i-Ur for guix-devel@gnu.org; Thu, 29 Dec 2016 13:35:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMfY2-0005Ra-VQ for guix-devel@gnu.org; Thu, 29 Dec 2016 13:35:35 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38073) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMfY2-0005Qf-OY for guix-devel@gnu.org; Thu, 29 Dec 2016 13:35:30 -0500 Content-Disposition: inline In-Reply-To: <87lguywq3w.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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: Marius Bakke Cc: guix-devel@gnu.org --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 29, 2016 at 07:24:19PM +0100, Marius Bakke wrote: > Leo Famulari writes: >=20 > > 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) >=20 > 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. 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": >=20 > $ 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'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. --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlhlV20ACgkQJkb6MLrK fwgvyg//cqWKOn8wMoO2C0GnPuiBInPqcjFcX4k80uR0FI7rvzr25om1LeCtyo82 LgcAAmCirKJbUN4xOoyzXT1iGIofAK6BKxUqxHvthGz3xuz79Vny16RpPS0tBb7h auK3oxEg3QUtucHReUyHVvJO15qTefS28NrrFtR0GSz0FChosRY6zB5RXx+acAhg Z5IXbmy6Tvu4T4CcJPA7hjWz51eOJUfzI2gK0gjIlmEV6jsoQxwVJ+qAKiyatpVy PvCIuInWzhPqaFqjJT3HUxavE2upba/+UODgYO0Q6d4yCiUw9A4AUCcZjT0nJei7 IdH3kUzv337g2bZm2jz7p7aMpUZ0e/Kwiiup7460JQajneCBpnKEzix3FprDKvpb wwxIdDpH3y4iANQ2zMGwqW0rmtKjOTin60Bz7jkapZSPwbmDT26ss8GKAsHytBKW vRT1DSDXUZU26vzQT5Tt6qhz4uR9JJ6hNUOXFbO8Zi80G7h8xsMecZJfW8o8TVCF BnFCGYubTP70dDZw3fPTroizKTQoak8QMWR2tM+y6W/MI98pFU2vn8zEt6DefB30 TXoKCzzfasEitX2N2pCTFwx0VKVSukbxgv61TNPE8T7Aizsvo0dvjf+6La/Pnn6z jvq0wHoYTKKWdonPwjHIepTX9dMb8N0GRl+xkYAjVkFY8SYNPF8= =ltR1 -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--