@@ -442,10 +442,10 @@ can be found
442442[ here] ( https://www.gnu.org/software/automake/manual/html_node/Standard-Directory-Variables.html ) .
443443
444444However, 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
450450We need to create a ` -original ` version of these init scripts that's pointed to
451451the 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)
458459bindir=" $( 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
460461chmod 664 /etc/systemd/system/guix-daemon-original.service
461462
462463# Make systemd recognize the new service
0 commit comments