-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/nginx: run config test as nginx user #95249
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
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)