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(+)
@@ -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