diff options
| author | Leo Famulari <leo@famulari.name> | 2017-03-05 14:33:13 -0500 |
|---|---|---|
| committer | Leo Famulari <leo@famulari.name> | 2017-03-06 13:25:51 -0500 |
| commit | 613d0895b92c677e0639d5e77c55043e38e020c8 (patch) | |
| tree | 5f2600f6c1fdf0648d310d7198772a34b5286c8a /etc | |
| parent | b812da70594f5d40647d156f69be0eb169d6be19 (diff) | |
build: Don't embed absolute paths in .service and .conf service files.
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@.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/guix-daemon.conf.in | 2 | ||||
| -rw-r--r-- | etc/guix-daemon.service.in | 2 | ||||
| -rw-r--r-- | etc/guix-publish.conf.in | 2 | ||||
| -rw-r--r-- | etc/guix-publish.service.in | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/etc/guix-daemon.conf.in b/etc/guix-daemon.conf.in index 8f833cb6930..09c70cde38a 100644 --- a/etc/guix-daemon.conf.in +++ b/etc/guix-daemon.conf.in | |||
| @@ -9,4 +9,4 @@ stop on runlevel [016] | |||
| 9 | 9 | ||
| 10 | task | 10 | task |
| 11 | 11 | ||
| 12 | exec @bindir@/guix-daemon --build-users-group=guixbuild | 12 | exec @localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild |
diff --git a/etc/guix-daemon.service.in b/etc/guix-daemon.service.in index ab0ce090c3e..ffe4cf9bd5c 100644 --- a/etc/guix-daemon.service.in +++ b/etc/guix-daemon.service.in | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | Description=Build daemon for GNU Guix | 6 | Description=Build daemon for GNU Guix |
| 7 | 7 | ||
| 8 | [Service] | 8 | [Service] |
| 9 | ExecStart=@bindir@/guix-daemon --build-users-group=guixbuild | 9 | ExecStart=@localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix-daemon --build-users-group=guixbuild |
| 10 | Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale | 10 | Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale |
| 11 | RemainAfterExit=yes | 11 | RemainAfterExit=yes |
| 12 | StandardOutput=syslog | 12 | StandardOutput=syslog |
diff --git a/etc/guix-publish.conf.in b/etc/guix-publish.conf.in index 498fa295be7..241c5945595 100644 --- a/etc/guix-publish.conf.in +++ b/etc/guix-publish.conf.in | |||
| @@ -9,4 +9,4 @@ stop on runlevel [016] | |||
| 9 | 9 | ||
| 10 | task | 10 | task |
| 11 | 11 | ||
| 12 | exec @bindir@/guix publish --user=nobody --port=8181 | 12 | exec @localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix publish --user=nobody --port=8181 |
diff --git a/etc/guix-publish.service.in b/etc/guix-publish.service.in index fc4e3c21f33..8aaf09e3cdc 100644 --- a/etc/guix-publish.service.in +++ b/etc/guix-publish.service.in | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | Description=Publish the GNU Guix store | 6 | Description=Publish the GNU Guix store |
| 7 | 7 | ||
| 8 | [Service] | 8 | [Service] |
| 9 | ExecStart=@bindir@/guix publish --user=nobody --port=8181 | 9 | ExecStart=@localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix publish --user=nobody --port=8181 |
| 10 | Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale | 10 | Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale |
| 11 | RemainAfterExit=yes | 11 | RemainAfterExit=yes |
| 12 | StandardOutput=syslog | 12 | StandardOutput=syslog |
