guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] services: nginx: Actually check if configuration is valid.


From: Tobias Geerinckx-Rice
Subject: Re: [PATCH] services: nginx: Actually check if configuration is valid.
Date: Fri, 9 Sep 2016 04:36:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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.

address@hidden ~$ sudo herd restart nginx
Service nginx has been stopped.
Service nginx has been started.
address@hidden ~$ echo syntax error >> ~/nginx/nginx.conf
address@hidden ~$ 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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]