services: guix-build-coordinator: Fix queue builds state directory.

This service doesn't create a PID file, but it does write a file with the
processed commits in it, so create a directory to contain that.

* gnu/services/guix.scm (guix-build-coordinator-queue-builds-activation):
Ensure /var/cache/guix-build-coordinator-queue-builds exists.
This commit is contained in:
Christopher Baines 2021-05-02 09:56:42 +01:00
parent 1b792e8b52
commit c1131911a7
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -523,9 +523,9 @@ (define %user
(mkdir-p "/var/log/guix-build-coordinator")
;; Allow writing the PID file
(mkdir-p "/var/run/guix-build-coordinator-queue-builds")
(chown "/var/run/guix-build-coordinator-queue-builds"
;; Allow writing the processed commits file
(mkdir-p "/var/cache/guix-build-coordinator-queue-builds")
(chown "/var/cache/guix-build-coordinator-queue-builds"
(passwd:uid %user)
(passwd:gid %user))))