guix-install.sh: Support OpenRC.
[jackhill/guix/guix.git] / etc / openrc / guix-daemon.in
1 #!/sbin/openrc-run
2 # GNU Guix --- Functional package management for GNU
3 # Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
4 #
5 # This file is part of GNU Guix.
6 #
7 # GNU Guix is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or (at
10 # your option) any later version.
11 #
12 # GNU Guix is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20 export GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale
21 export LC_ALL=en_US.utf8
22 command="@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon"
23 command_args="--build-users-group=guixbuild"
24 command_background="yes"
25 pidfile="/var/run/guix-daemon.pid"
26
27 output_log="/var/log/guix-daemon-stdout.log"
28 error_log="/var/log/guix-daemon-stderr.log"