diff mbox series

[bug#37624] Try to add Runit daemon setup in documentation (install guix in existing GNU/Linux)

Message ID fsX2IBFeHzIKtds1QwumVxUXJNDe4OCZSybGOsxSQ-DCj4L2VQRI8HskhWehqrePF4R90NCD508wiUub085bSeKRl20RD5GbHxFXXJYNmrY=@protonmail.com
State Accepted
Headers show
Series [bug#37624] Try to add Runit daemon setup in documentation (install guix in existing GNU/Linux) | expand

Commit Message

ashish.is--- via Guix-patches" via Oct. 12, 2019, 7:31 p.m. UTC
Sorry for non-attach file email.

Sent with ProtonMail Secure Email.
diff mbox series

Patch

From 0ff778ff5d7d17fef76b5abc14f274173fd263b8 Mon Sep 17 00:00:00 2001
From: Pathompong Kwangtong <foxmean@protonmail.com>
Date: Sun, 13 Oct 2019 01:24:48 +0700
Subject: [PATCH] Add Runit init system in guix installation

---
 doc/guix.texi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 6703c2756c..99068111bb 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -649,6 +649,31 @@  If your host distro uses the Upstart init system:
 # start guix-daemon
 @end example
 
+If your host distro use th Runit init system:
+
+@example
+# mkdir /etc/sv/guix-daemon
+@end example
+
+Then create file /etc/sv/guix-daemon/run with your favorite text editor e.g. emacs.
+
+@example
+# emacs /etc/sv/guix-daemon/run
+@end example
+
+And add this two line of code in the file.
+
+@example
+#!/bin/sh
+exec /var/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild
+@end example
+
+Now, you can enable and start guix-daemon service with:
+
+@example
+> # ln -s /etc/sv/guix-daemon /var/service/ && sv up guix-daemon
+@end example
+
 Otherwise, you can still start the daemon manually with:
 
 @example
-- 
2.23.0