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

From: Foxmean <[email-masked]>
Date: Sat, 12 Oct 2019 19:30:26 +0000

I hope this can help you, even so a little.

ProtonMailモバイルから送信

---元のメッセージ---

> ProtonMailモバイルから送信

From 0ff778ff5d7d17fef76b5abc14f274173fd263b8 Mon Sep 17 00:00:00 2001
From: Pathompong Kwangtong <[email-masked]>
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