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@.
13 lines
343 B
Plaintext
13 lines
343 B
Plaintext
# This is a "job" for the Upstart init system to launch 'guix-daemon'.
|
|
# Drop it in /etc/init to have 'guix-daemon' automatically started.
|
|
|
|
description "Publish the GNU Guix store"
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [016]
|
|
|
|
task
|
|
|
|
exec @localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix publish --user=nobody --port=8181
|