summaryrefslogtreecommitdiff
path: root/etc/runit/run.in
blob: e57ef597bc718807968f033856e32e9aeb84d8ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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