From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: [PATCH] services: nginx: Actually check if configuration is valid. Date: Fri, 9 Sep 2016 04:36:26 +0200 Message-ID: <287ff15a-26df-014f-ab3f-a94950bb1198@tobias.gr> References: <1473386715-10297-1-git-send-email-me@tobias.gr> <29fffdf8-d8fa-d579-d15f-6a4cdc6d22f7@tobias.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PfXwmb3pJi66b2dx32bx6iag2wcAGEbmg" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biBgF-0001eT-0m for guix-devel@gnu.org; Thu, 08 Sep 2016 22:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biBgA-0003A3-RA for guix-devel@gnu.org; Thu, 08 Sep 2016 22:36:37 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:34949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biBgA-00039w-Jv for guix-devel@gnu.org; Thu, 08 Sep 2016 22:36:34 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: dthompson2@worcester.edu Cc: guix-devel@gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PfXwmb3pJi66b2dx32bx6iag2wcAGEbmg Content-Type: multipart/mixed; boundary="4A2HwkUIxTW5l1HjnG1kdWQE8rLnhuKVC"; protected-headers="v1" From: Tobias Geerinckx-Rice To: dthompson2@worcester.edu Cc: guix-devel@gnu.org Message-ID: <287ff15a-26df-014f-ab3f-a94950bb1198@tobias.gr> Subject: Re: [PATCH] services: nginx: Actually check if configuration is valid. References: <1473386715-10297-1-git-send-email-me@tobias.gr> <29fffdf8-d8fa-d579-d15f-6a4cdc6d22f7@tobias.gr> In-Reply-To: --4A2HwkUIxTW5l1HjnG1kdWQE8rLnhuKVC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Dave, On 09/09/16 04:29, Thompson, David wrote: > No, it doesn't. I wrote the nginx service. The config file used is > part of the g-expression and is absolutely not stateful. Wait. nckx@v5 ~$ sudo herd restart nginx Service nginx has been stopped. Service nginx has been started. nckx@v5 ~$ echo syntax error >> ~/nginx/nginx.conf nckx@v5 ~$ sudo herd restart nginx Service nginx has been stopped. Service nginx could not be started. > I mean that it should throw an error before the system is made active. > The derivation that builds the service file should fail. I think that's what I want too :-) Kind regards, T G-R --4A2HwkUIxTW5l1HjnG1kdWQE8rLnhuKVC-- --PfXwmb3pJi66b2dx32bx6iag2wcAGEbmg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCgAGBQJX0iArAAoJEJHM25tIVBuZnKwH/RMgRAoTWSI63z2aAX4I2AS9 8upx1GKEUcER3GVbmlDxcqU48dLby8dBxMprb06h7vx8iN+kK6e7ad2XkrvP53lR dLGwy1hWvGm2n6HJ93ibeMZ6I2CIkEy/i6VIfFRPdT9vJKp99ODFIF5e7KNI1sg7 sMWnoT3mepEJ4qNZnrnSTaWjHGZ1PV5HinVzr5fY+NsgMCBm5tIcuFBR767EARYw 3rYo/coOnOuOPKFQvIX58HGqNTsdjdvxKJCi5t7zQIFa3w4rzVWQixxTrxZKPMEC /R/SJeBChy+O7rmR3mnv9FbWSIyW61Dm+aaKOhGN6NJffnesxpofp2/Mz5XiJ3s= =NmTD -----END PGP SIGNATURE----- --PfXwmb3pJi66b2dx32bx6iag2wcAGEbmg--