services: nginx: Use 'invoke' rather than 'system*'.

* gnu/services/web.scm (nginx-shepherd-service): Replace SYSTEM* with INVOKE.
This commit is contained in:
Clément Lassieur 2018-08-13 21:02:39 +02:00
parent ef2dda8edb
commit 4ae0607dd8
No known key found for this signature in database
GPG key ID: 89F96D4808F359C7

View file

@ -5,7 +5,7 @@
;;; Copyright © 2016, 2017, 2018 Julien Lepiller <julien@lepiller.eu> ;;; Copyright © 2016, 2017, 2018 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net> ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2017 nee <nee-git@hidamari.blue> ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr> ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -602,11 +602,10 @@ (define (nginx-shepherd-service config)
(nginx-action (nginx-action
(lambda args (lambda args
#~(lambda _ #~(lambda _
(zero? (invoke #$nginx-binary "-c"
(system* #$nginx-binary "-c" #$(or file
#$(or file (default-nginx-config config))
(default-nginx-config config)) #$@args)))))
#$@args))))))
;; TODO: Add 'reload' action. ;; TODO: Add 'reload' action.
(list (shepherd-service (list (shepherd-service