summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRobert Vollmert <rob@vllmrt.net>2019-06-30 22:56:25 +0200
committerLudovic Courtès <ludo@gnu.org>2019-09-04 23:41:07 +0200
commitc26f562e5e22b07e61475cab7324e84f6fe70e57 (patch)
treea5f9765c17406a2b093f4ce2d99e41fb51267705 /gnu
parent8161c2d6ce71f200b2d467fda46495fd2ff58c36 (diff)
downloadguix-c26f562e5e22b07e61475cab7324e84f6fe70e57.tar.gz
services: nginx: Pass run-directory on config test.
Fixes <https://bugs.gnu.org/36388>.
This fixes error logging errors in the activation script.

* gnu/services/web.scm (nginx-activation): Add "-p" flag.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/web.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index 35efddb0ae..56971238ab 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -682,7 +682,8 @@ of index files."
        (system* (string-append #$nginx "/sbin/nginx")
                 "-c" #$(or file
                            (default-nginx-config config))
-                  "-t"))))
+                "-p" #$run-directory
+                "-t"))))
 
 (define (nginx-shepherd-service config)
   (match-record config