And one extra reason is that this way we can keep previous versions
(generations) of the config file, allowing quick rollbacks.

On Tue, Aug 9, 2016 at 2:34 PM Robin Gloster <ro...@loc-com.de> wrote:

> Hi,
>
> Adding to Eelco's explanation, this would also theoretically allow you to
> start e.g.
> different nginx servers on different versions with different
> configurations. For
> the most or probably all services more changes would be needed to support
> this
> realistically.
>
> Robin
>
>
> -----Original message-----
> > From:Eelco Dolstra <eelco.dols...@logicblox.com>
> > Sent: Tuesday 9th August 2016 11:38
> > To: nix-dev@lists.science.uu.nl
> > Subject: Re: [Nix-dev] Why nginx config isn't placed into
> /etc/nginx/nginx.conf?
> >
> > Hi,
> >
> > On 08/09/2016 01:29 PM, Daniel Hlynskyi wrote:
> >
> > > Is this intentional? I'm writing a service and want to know whether to
> do like
> > > nginx or use /etc for configs.
> >
> > Generally, files should not be placed in /etc unless they are global
> > configuration, like /etc/resolv.conf. This way, implicit dependencies are
> > avoided. Service-specific configuration files like nginx.conf don't need
> to be
> > in /etc because they usually can be passed to the service via a command
> line
> > switch from the generated systemd unit.
> >
> > --
> > Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> > _______________________________________________
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to