[Nix-dev] nginx & systemd - not starting

Malcolm Matalka mmatalka at gmail.com
Sat Apr 13 22:57:43 CEST 2013


Great, I'll send a pull request tomorrow.
Den 13 apr 2013 22:55 skrev "Domen Kožar" <domen at dev.si>:

> Agreed, let's do that.
>
>
> On Sat, Apr 13, 2013 at 9:18 PM, Malcolm Matalka <mmatalka at gmail.com>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 <domen at dev.si> writes:
>>
>> > Could you put that into nginx config example? Thanks!
>> >
>> >
>> > On Sat, Apr 13, 2013 at 7:06 PM, Malcolm Matalka <mmatalka at gmail.com>
>> 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" <mmatalka at gmail.com>
>> 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
>> >> nix-dev at lists.science.uu.nl
>> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>> >>
>> >>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130413/d3d98f59/attachment.html 


More information about the nix-dev mailing list