Repository navigation
Conversation
Otherwise this changes ownership of /var/cache/nginx/ to nobody which makes the normal execution fail.
|
Can we move the check command into an additional |
|
This option works for me. |
No because than I cannot add it nginx to the |
I don't understand. The configuration check would need to run with the same permissions, groups etc. as the main unit, so having reload logic inside the main unit should be exactly what we need, shouldn't it? |
There is already |
Not for the reload command, only the start command. I'd assume if we add it to the reload commands, we'd get the same (better) error messages. |
I don't think the error is shown because the nginx.service is not reloaded from the activation script point of view. |
|
I did the following patch: And re-ran the |
|
Feel to make a PR. |
Otherwise this changes ownership of /var/cache/nginx/ to nobody
which makes the normal execution fail.
Motivation for this change
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)