@@ -442,10 +442,10 @@ can be found
442
442
[ here] ( https://www.gnu.org/software/automake/manual/html_node/Standard-Directory-Variables.html ) .
443
443
444
444
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
446
446
` ${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) .
449
449
450
450
We need to create a ` -original ` version of these init scripts that's pointed to
451
451
the binaries we just built and ` make install ` 'ed in ` ${bindir} ` (normally,
@@ -455,8 +455,9 @@ Example for `systemd`, run as `root`:
455
455
456
456
``` sh
457
457
# Create guix-daemon-original.service by modifying guix-daemon.service
458
+ libdir=# set according to your PREFIX (default is /usr/local/lib)
458
459
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
460
461
chmod 664 /etc/systemd/system/guix-daemon-original.service
461
462
462
463
# Make systemd recognize the new service
0 commit comments