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
1 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@
;;; Copyright © 2016, 2017, 2018 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
;;; 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>
;;;
;;; This file is part of GNU Guix.
@ -602,11 +602,10 @@ of index files."
(nginx-action
(lambda args
#~(lambda _
(zero?
(system* #$nginx-binary "-c"
(invoke #$nginx-binary "-c"
#$(or file
(default-nginx-config config))
#$@args))))))
#$@args)))))
;; TODO: Add 'reload' action.
(list (shepherd-service