services: nginx: Actually check if configuration is valid.

* gnu/services/web.scm (nginx-activation): Fix path to nginx binary.
This commit is contained in:
Tobias Geerinckx-Rice 2016-09-09 03:14:41 +02:00
parent 4b42703ed5
commit d21047d504
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -80,7 +80,7 @@ (define nginx-activation
(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