Agreed, let's do that.

On Sat, Apr 13, 2013 at 9:18 PM, Malcolm Matalka <[email protected]> wrote:

> What about changing:
>
>   configFile = pkgs.writeText "nginx.conf" ''
>     ${cfg.config}
>   '';
>
> To:
>
>   configFile = pkgs.writeText "nginx.conf" ''
>     user nginx nginx;
>     daemon off;
>     ${cfg.config}
>   '';
>
> ?
>
>
> Domen Kožar <[email protected]> writes:
>
> > Could you put that into nginx config example? Thanks!
> >
> >
> > On Sat, Apr 13, 2013 at 7:06 PM, Malcolm Matalka <[email protected]>
> wrote:
> >
> >> This was solved, it was a configuration issue on my nginx, you have to
> >> turn demonizing off.
> >>  On Apr 13, 2013 4:02 PM, "Malcolm Matalka" <[email protected]> wrote:
> >>
> >>> Hello,
> >>> I'm trying to get Nginx running, but systemd does not want to start it.
> >>> I can run the commands by hand, and those work, but not through
> systemd.
> >>>
> >>> Here is output:
> >>>
> >>> systemctl status nginx.service
> >>> nginx.service - Nginx Web Server
> >>>           Loaded: loaded
> >>>
> (/nix/store/iqmmiai4rxq8b9wp161ll135kawb9bhp-unit/nginx.service)
> >>>           Active: inactive (dead) since Sat 2013-04-13 15:45:24 CEST;
> >>>           15min ago
> >>>          Process: 31028
> >>>
> >>>
>  ExecStart=/nix/store/jp7q64dir51p6a2z3vfis76yxq0315gc-nginx-1.2.4/bin/nginx
> >>>          -c /nix/store/mbvjzv3ryz4rqvclbggn6fxq6k8z4hf7-nginx.conf -p
> >>>          /var/spool/nginx (code=exited, status=0/SUCCESS)
> >>>          Process: 31019
> >>>
> >>>
>  
> ExecStartPre=/nix/store/k2ba2yj60az352kjfzii86p59vhsyv0y-unit-script/bin/nginx-pre-start
> >>>          (code=exited, status=0/SUCCESS)
> >>>
> >>> I'm not sure what other information is useful in debugging this.
> >>>
> >>> Thanks,
> >>> /Malcolm
> >>>
> >>
> >> _______________________________________________
> >> nix-dev mailing list
> >> [email protected]
> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >>
> >>
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to