Repository navigation
nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled - #76179
Conversation
with reload enabled Closes NixOS#73455
|
I know about #74072, but I have a test working so it is not blocked by that PR. |
|
@Mic92 you are right, the The reason I still do I can implement that with running logger manually from reload script. Do you think it is better to run logger explicitly, rather than relying on I also removed However, if unit is stopped first, then activate starts both |
|
@danbst Looks good to me. Please rebase to current master. |
…into nginx-reload-warn-errors
|
@domenkozar @ckauhaus what do you think, this has to be backported to 19.09? I believe it should, but I need confirmation |
|
Yup. |
… with reload enabled (NixOS#76179) nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled Closes NixOS#73455 (cherry picked from commit cef68c4)
… with reload enabled (NixOS#76179) nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled Closes NixOS#73455 (cherry picked from commit cef68c4)
| ${execCommand} -t && \ | ||
| ${pkgs.systemd}/bin/systemctl reload nginx.service | ||
| fi | ||
| ''; |
There was a problem hiding this comment.
This line breaks nginx. It causes directories in /var/cache/nginx/ to be owned by nobody, which breaks large POST uploads. I think this might due the fact that nginx is no longer started as root. cc @Izorkin
There was a problem hiding this comment.
Ok. I have a simpler version. Will post.
Closes #73455
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)Notify maintainers
cc @domenkozar @Izorkin @aanderse @ckauhaus