diff options
author | Vincent Legoll <vincent.legoll@gmail.com> | 2020-04-13 18:07:40 +0200 |
---|---|---|
committer | Guix Patches Tester <> | 2020-04-14 19:16:30 +0100 |
commit | 9d7f265cfce1fe21e05ba9210bd44e37a5346932 (patch) | |
tree | 7cad652ae24b7c30656d68150b3d00314941ef55 /etc/runit/run.in | |
parent | 036acbf287309fd11540769879bb0693bbc4e025 (diff) | |
download | guix-patches-9d7f265cfce1fe21e05ba9210bd44e37a5346932.tar guix-patches-9d7f265cfce1fe21e05ba9210bd44e37a5346932.tar.gz |
guix-install.sh, guix-binary tarball: Handle runit-based foreign distributions.
* .gitignore: Add /etc/runit/run.
* etc/guix-install.sh (chk_init_sys): Add case to detect runit.
(sys_enable_guix_daemon): Add case to setup guix-daemon within runit.
* etc/runit/run.in: New file.
* nix/local.mk (etc/runit/run): Add target to generate etc/runit/run from
etc/runit/run.in. (nodist_runitservice_DATA): New variable... (CLEANFILES):
... add it here. (runitservicedir): New variable. (EXTRA_DIST): Add
etc/runit/run.in.
Diffstat (limited to 'etc/runit/run.in')
-rw-r--r-- | etc/runit/run.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/runit/run.in b/etc/runit/run.in new file mode 100644 index 0000000000..e57ef597bc --- /dev/null +++ b/etc/runit/run.in @@ -0,0 +1,15 @@ +#!/bin/sh + +# This is a "run script" for the runit init system to launch +# 'guix-daemon'. Drop it in /etc/sv/guix-daemon and add a symlink to +# it like the following to have 'guix-daemon' automatically started. +# ln -s /etc/sv/guix-daemon /etc/runit/runsvdir/default/ + +GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale +LC_ALL=en_US.utf8 + +export GUIX_LOCPATH LC_ALL + +exec @localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon \ + --build-users-group=guixbuild + |