[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] services: nginx: Actually check if configuration is valid.
From: |
Tobias Geerinckx-Rice |
Subject: |
[PATCH] services: nginx: Actually check if configuration is valid. |
Date: |
Fri, 9 Sep 2016 04:05:15 +0200 |
* gnu/services/web.scm (nginx-activation): Fix path to nginx binary.
---
Hullo again!
I suspect not many people run nginx (or dovecot, but that's a different
matter) on Guix. The nginx activation script will now correctly print a
non-fatal error if the configuration smells off.
Why I'm mailing: was this intended to be fatal? It's easy to miss now.
Kind regards,
T G-R
gnu/services/web.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index d86aab5..5b0e816 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -80,7 +80,7 @@
(format #t "creating nginx run directory '~a'~%" #$run-directory)
(mkdir-p #$run-directory)
;; Check configuration file syntax.
- (system* (string-append #$nginx "/bin/nginx")
+ (system* (string-append #$nginx "/sbin/nginx")
"-c" #$config-file "-t")))))
(define nginx-shepherd-service
--
2.7.4