From: Leo Famulari <leo@famulari.name>
To: 藍挺瑋 <lantw44@gmail.com>
Cc: 27037@debbugs.gnu.org
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 [thread overview]
Message-ID: <20170523161624.GA15379@jasmine> (raw)
In-Reply-To: <CAG-RorUA4NG3wdJcStHTCMASJXtk-gWo-aM6+GHfi=V2=o1wyA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
On Tue, May 23, 2017 at 11:33:42PM +0800, 藍挺瑋 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=. 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-05-23 16:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 15:33 bug#27037: systemd service files installed by guix 0.13.0 cannot used by other distributions 藍挺瑋
2017-05-23 16:16 ` Leo Famulari [this message]
2017-05-24 15:37 ` 藍挺瑋
2017-05-24 22:07 ` Leo Famulari
2017-05-29 14:19 ` 藍挺瑋
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170523161624.GA15379@jasmine \
--to=leo@famulari.name \
--cc=27037@debbugs.gnu.org \
--cc=lantw44@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.