Skip to content

Commit 5d24cc3

Browse files
committed
guix/INSTALL: Guix installs init scripts in libdir
1 parent 5da2ee4 commit 5d24cc3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

contrib/guix/INSTALL.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ can be found
442442
[here](https://www.gnu.org/software/automake/manual/html_node/Standard-Directory-Variables.html).
443443

444444
However, the Guix init scripts and service configurations for Upstart, systemd,
445-
SysV, and OpenRC are installed to launch
445+
SysV, and OpenRC are installed (in `${libdir}`) to launch
446446
`${localstatedir}/guix/profiles/per-user/root/current-guix/bin/guix-daemon`,
447-
which does not yet exist, and will only exist after `root` performs their first
448-
`guix pull`. TODO: Link to `guix pull` as root section
447+
which does not yet exist, and will only exist after [`root` performs their first
448+
`guix pull`](#guix-pull-as-root).
449449

450450
We need to create a `-original` version of these init scripts that's pointed to
451451
the binaries we just built and `make install`'ed in `${bindir}` (normally,
@@ -455,8 +455,9 @@ Example for `systemd`, run as `root`:
455455

456456
```sh
457457
# Create guix-daemon-original.service by modifying guix-daemon.service
458+
libdir=# set according to your PREFIX (default is /usr/local/lib)
458459
bindir="$(dirname $(command -v guix-daemon))"
459-
sed -E -e "s|/\S*/guix/profiles/per-user/root/current-guix/bin/guix-daemon|${bindir}/guix-daemon|" /etc/systemd/system/guix-daemon.service > /etc/systemd/system/guix-daemon-original.service
460+
sed -E -e "s|/\S*/guix/profiles/per-user/root/current-guix/bin/guix-daemon|${bindir}/guix-daemon|" "${libdir}"/systemd/system/guix-daemon.service > /etc/systemd/system/guix-daemon-original.service
460461
chmod 664 /etc/systemd/system/guix-daemon-original.service
461462

462463
# Make systemd recognize the new service

0 commit comments

Comments
 (0)