GNU bug report logs -
#26830
Allow services to implement a 'reload' action
Previous Next
Full log
View this message in rfc822 format
* gnu/services/web.scm (nginx-shepherd-service): Add it.
---
gnu/services/web.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index f85b41215..956aa1518 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016 ng0 <ng0 <at> we.make.ritual.n0.is>
;;; Copyright © 2016, 2017 Julien Lepiller <julien <at> lepiller.eu>
;;; Copyright © 2017 Christopher Baines <mail <at> cbaines.net>
+;;; Copyright © 2017 Clément Lassieur <clement <at> lassieur.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -262,13 +263,13 @@ of index files."
run-directory server-blocks upstream-blocks))
#$@args))))))
- ;; TODO: Add 'reload' action.
(list (shepherd-service
(provision '(nginx))
(documentation "Run the nginx daemon.")
(requirement '(user-processes loopback))
(start (nginx-action "-p" run-directory))
- (stop (nginx-action "-s" "stop"))))))))
+ (stop (nginx-action "-s" "stop"))
+ (reload (nginx-action "-s" "reload"))))))))
(define nginx-service-type
(service-type (name 'nginx)
--
2.12.2
This bug report was last modified 3 years and 77 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.