aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPathompong Kwangtong <foxmean@protonmail.com>2019-10-13 01:24:48 +0700
committerGuix Patches Tester <>2020-04-14 19:16:36 +0100
commit74f3f0febc4390141457e9949536325431c7d260 (patch)
treee5bbf946999d9c30edf95480b6b52d4b32bccb17 /doc
parentd94271f9ca68062435c35f788dcb22483b38ef31 (diff)
downloadpatches-series-3530.tar
patches-series-3530.tar.gz
doc: Add Runit init system in guix installation.series-3530
* doc/guix.texi (Binary Installation): Add runit section. * .mailmap: Add author email adress. Co-authored-by: Vincent Legoll <vincent.legoll@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 891e2693f6..7a13ed4439 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -71,6 +71,7 @@ Copyright @copyright{} 2019 Alex Griffin@*
Copyright @copyright{} 2019 Guillaume Le Vaillant@*
Copyright @copyright{} 2020 Leo Prikler@*
Copyright @copyright{} 2019, 2020 Simon Tournier@*
+Copyright @copyright{} 2019 Pathompong Kwangtong@*
Copyright @copyright{} 2020 Wiktor Żelazny@*
Copyright @copyright{} 2020 Damien Cassou@*
Copyright @copyright{} 2020 Jakub Kądziołka@*
@@ -663,6 +664,35 @@ If your host distro uses the Upstart init system:
# start guix-daemon
@end example
+If your host distro use the Runit init system:
+
+@example
+# mkdir /etc/sv/guix-daemon
+@end example
+
+Then create the guix-daemon runit launch script:
+
+@example
+# cat > /etc/sv/guix-daemon/run <<EOF
+#!/bin/sh
+
+GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale
+LC_ALL=en_US.utf8
+
+export GUIX_LOCPATH LC_ALL
+
+exec /var/guix/profiles/per-user/root/current-guix/bin/guix-daemon \
+ --build-users-group=guixbuild
+EOF
+@end example
+
+Now, you can enable and start the guix-daemon service with:
+
+@example
+# ln -s /etc/sv/guix-daemon /etc/runit/runsvdir/default/
+# sv up guix-daemon
+@end example
+
Otherwise, you can still start the daemon manually with:
@example