mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
613d0895b9
Otherwise, users will be stuck running an old copy of guix and the guix-daemon if they copy the service files instead of symlinking them. * etc/guix-daemon.conf.in, etc/guix-daemon.service.in, etc/guix-publish.conf.in, etc/guix-publish.service.in: Expand @localstatedir@ instead of @bindir@. * nix/local.mk (etc/guix-%.service, etc/guix-%.conf): Use @localstatedir@ instead of @bindir@.
19 lines
596 B
SYSTEMD
19 lines
596 B
SYSTEMD
# This is a "service unit file" for the systemd init system to launch
|
|
# 'guix-daemon'. Drop it in /etc/systemd/system or similar to have
|
|
# 'guix-daemon' automatically started.
|
|
|
|
[Unit]
|
|
Description=Build daemon for GNU Guix
|
|
|
|
[Service]
|
|
ExecStart=@localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild
|
|
Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
|
|
RemainAfterExit=yes
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
|
|
# See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608.html>.
|
|
TasksMax=1024
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|