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

Message ID GNei9rCs86Wl_L9GCUEfU_grZaau_EtBraoGsCLdjA520Skzqu8S7l7tkqghffIYsUzd1N454XCCqgUSYgQNaCr7zeucpzdX9g3iW3dfgi8=@protonmail.com
State New
Headers show
Series
  • [bug#37624] Try to add Runit daemon setup in manual (install guix in existing GNU/Linux)
Related show

Commit Message

Tobias Geerinckx-Rice via Guix-patches via Oct. 12, 2019, 7:30 p.m. UTC
I hope this can help you, even so a little.

ProtonMailモバイルから送信

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

> ProtonMailモバイルから送信

Patch
diff mbox series

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