diff mbox series

[bug#37624,v2] Re: Add how to create a runit service in step 5 of binary installation manual

Message ID 712fb208-43c4-6a30-b0c8-04198a51db8f@gmail.com
State Under Review
Delegated to: Christopher Baines
Headers show
Series [bug#37624,v2] Re: Add how to create a runit service in step 5 of binary installation manual | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch fail View Laminar job

Commit Message

Vincent Legoll April 13, 2020, 10:29 p.m. UTC
On 14/04/2020 00:22, Vincent Legoll wrote:
> Hello,
>
>
> as I recently worked on the same subject in [1],
>
> I reviewed and amended the documentation patch [2].
>
>
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40601
>
> [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37624
>

And now with the patch...

Comments

Christopher Baines Dec. 18, 2020, 1:35 p.m. UTC | #1
Vincent Legoll <vincent.legoll@gmail.com> writes:

> On 14/04/2020 00:22, Vincent Legoll wrote:
>> Hello,
>>
>>
>> as I recently worked on the same subject in [1],
>>
>> I reviewed and amended the documentation patch [2].
>>
>>
>> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40601
>>
>> [2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37624
>>
>
> And now with the patch...

I've had a look at the patch, it seems OK. Did you consider adding the
config file to Guix itself, so that a user can copy it, just like the
systemd and upstart examples?

That might be more consistent, and avoid the docs getting longer.

Chris
Vincent Legoll Dec. 18, 2020, 7:37 p.m. UTC | #2
Hello again,

> I've had a look at the patch, it seems OK. Did you consider adding the
> config file to Guix itself, so that a user can copy it, just like the
> systemd and upstart examples?

Yes, I think I have that done also, I'll dig it out. I even think I saw the
doc issue bug after having done the config file thing.

> That might be more consistent, and avoid the docs getting longer.

Stay tuned
diff mbox series

Patch

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

* doc/guix.texi (Binary Installation): Add runit section.
* .mailmap: Add author email adress.

Co-authored-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 .mailmap      |  1 +
 doc/guix.texi | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/.mailmap b/.mailmap
index 97018775f6..aa5227b91d 100644
--- a/.mailmap
+++ b/.mailmap
@@ -62,6 +62,7 @@  ng0 <ng0@n0.is> <ngillmann@runbox.com>
 ng0 <ng0@n0.is> <niasterisk@grrlz.net>
 ng0 <ng0@n0.is> <ng@niasterisk.space>
 ng0 <ng0@n0.is> <ng0@libertad.pw>
+Pathompong Kwangtong <foxmean@protonmail.com>
 Pierre Neidhardt <mail@ambrevar.xyz>
 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
 Pjotr Prins <pjotr.guix@thebird.nl> <pjotr.public01@thebird.nl>
diff --git a/doc/guix.texi b/doc/guix.texi
index 8bf4ef9b74..94cb89eddf 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@*
@@ -664,6 +665,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
-- 
2.20.1