Hello,
"Thompson, David" skribis:
> I mean that it should throw an error before the system is made active.
> The derivation that builds the service file should fail. Not
> suggesting it needs to be done right now, but I think it would be
> cool.
Yup. Running “nginx -t” would do the trick, rig
Tobias Geerinckx-Rice skribis:
> * gnu/services/web.scm (nginx-activation): Fix path to nginx binary.
OK to push! :-)
Ludo'.
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 ~$
On Thu, Sep 8, 2016 at 10:21 PM, Tobias Geerinckx-Rice wrote:
> Dave,
>
> On 09/09/16 04:09, Thompson, David wrote:
>> Maybe this could be done at build-time instead?
>
> The nginx service points to a stateful configuration file, like
> /etc/nginx.conf, that isn't built or handled by Guix.
No, it
Dave,
On 09/09/16 04:09, Thompson, David wrote:
> Maybe this could be done at build-time instead?
The nginx service points to a stateful configuration file, like
/etc/nginx.conf, that isn't built or handled by Guix.
I'd like that to change, but that will have to wait for now.
> Would be nice to
On Thu, Sep 8, 2016 at 10:05 PM, Tobias Geerinckx-Rice wrote:
> * gnu/services/web.scm (nginx-activation): Fix path to nginx binary.
> ---
>
> Hullo again!
>
> I suspect not many people run nginx (or dovecot, but that's a different
> matter) on Guix. The nginx activation script will now correctly
* gnu/services/web.scm (nginx-activation): Fix path to nginx binary.
---
Hullo again!
I suspect not many people run nginx (or dovecot, but that's a different
matter) on Guix. The nginx activation script will now correctly print a
non-fatal error if the configuration smells off.
Why I'm mailing: