From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kav-00055O-P1 for guix-patches@gnu.org; Mon, 08 May 2017 11:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7kas-00050U-VH for guix-patches@gnu.org; Mon, 08 May 2017 11:29:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7kas-00050N-Rm for guix-patches@gnu.org; Mon, 08 May 2017 11:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7kas-00011D-Lu for guix-patches@gnu.org; Mon, 08 May 2017 11:29:02 -0400 Subject: bug#26830: [PATCH 2/4] gnu: services: nginx: Add a 'reload' action. Resent-Message-ID: From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Date: Mon, 8 May 2017 17:28:30 +0200 Message-Id: <20170508152832.4797-2-clement@lassieur.org> In-Reply-To: <20170508152832.4797-1-clement@lassieur.org> References: <20170508152832.4797-1-clement@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26830@debbugs.gnu.org * 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 ;;; Copyright © 2016, 2017 Julien Lepiller ;;; Copyright © 2017 Christopher Baines +;;; Copyright © 2017 Clément Lassieur ;;; ;;; 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