From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#27037: systemd service files installed by guix 0.13.0 cannot used by other distributions Date: Tue, 23 May 2017 12:16:24 -0400 Message-ID: <20170523161624.GA15379@jasmine> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDCUd-00074C-S6 for bug-guix@gnu.org; Tue, 23 May 2017 12:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDCUY-0005xt-Ut for bug-guix@gnu.org; Tue, 23 May 2017 12:17:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDCUY-0005xm-Lp for bug-guix@gnu.org; Tue, 23 May 2017 12:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDCUY-0005mG-02 for bug-guix@gnu.org; Tue, 23 May 2017 12:17:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?=E8=97=8D=E6=8C=BA=E7=91=8B?= Cc: 27037@debbugs.gnu.org --opJtzjQTFsWo+cga Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 23, 2017 at 11:33:42PM +0800, =E8=97=8D=E6=8C=BA=E7=91=8B wrote: Hi! > I found the systemd service files installed by guix 0.13.0 > use /var/guix/profiles/per-user/root/guix-profile/bin/guix* instead of > /usr/bin/guix* in ExecStart=3D. The path /var/guix/profiles don't exist > on systems that don't have guix installed before I'm a little confused: is there a situation where Guix is not installed but '/usr/bin/guix-daemon' exists? The path '/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon' is guaranteed to exist if you followed the instructions in Binary Installation [0], which is, as far as I know, the most common way to install Guix on other distros. So, I think this path is appropriate for the basic service file we provide. > Is it possible to fix systemd service files, so it can be easily used > by packages in other distributions? I think that, if you are packaging Guix for other distros, you should provide your own service file. My experience is that each systemd-based distro uses systemd's advanced features (e.g. process grouping and resource limiting) in different ways. So, making your own service file, in accordance with your distro's standards, will help Guix work in a way that is more idiomatic to the host distro. [0] Specifically, it happens during the initial unpacking and renaming: `mv var/guix /var/ && mv gnu/` https://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html --opJtzjQTFsWo+cga Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlkkYFQACgkQJkb6MLrK fwhNORAAt0bjjdVO9IdQikUbhFexM4kKVvfk6+cBTAqEVPYJ6ECdEvgO+WKuccna 3OSvpY6IShtkffg78306HXsWn55BfTnodpXf0f7bvINY3CMzGhDzJ8AcsriON2fq nERdSUGfUcW0lNrtH++9u+65D8cSYFJ4Qln3BGQ9rbAb/2eyyvYh0593HY9KGygn 3Ym/dlJwFB6HrjsjZ0xGA5lqgLTUHcNAxebAJJ1hhfbmCzhm3q7/rHN7TqYAahM+ QUMVrV/xs5WRY20OUh59/k1rRFblAkxqbn7Y+phoGUIETs1uh/MiZzHttvAm8/uB ex/zmmMJ8/0qvgMMd1oQX+OOic923Rr1BlPUO9230oLn0eEYqd/kinXyZO7VGFp/ h85LhBPXQ/uZT3alMwlTcXoSpn+Lk3SCr/naf4fdYKNDzFz1FVkcWdoYpDfW6frj AlIwq7CZvUhYqL/6UxHaeJTqZKdVPKqFgKPIhsAvcHLoStQf/xLfGE5D8I4O5jOp pgcKTrkao9H1K3xTKTUhpO5IlgYuJYYY9MpCDKFMYESfEnMLIhqQcdNBdocEBLLB ezWUGVbyQRXrzsg9jMqlrdfmZ4kOKZZmN6AWLWvxYEpBhJ8d8qRNYmaSlqnxFWaA PbwYLUkZmpI4daft44AjegXiuHCVDFH51i1eyKPmSk2Tv1oeUOM= =pupo -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--