mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
Merge pull request #202245 from tylerjl/rpcbind-tmpfiles-dependency
This commit is contained in:
commit
5b450caa5e
@ -35,6 +35,16 @@ with lib;
|
||||
|
||||
systemd.services.rpcbind = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
# rpcbind performs a check for /var/run/rpcbind.lock at startup
|
||||
# and will crash if /var/run isn't present. In the stock NixOS
|
||||
# var.conf tmpfiles configuration file, /var/run is symlinked to
|
||||
# /run, so rpcbind can enter a race condition in which /var/run
|
||||
# isn't symlinked yet but tries to interact with the path, so
|
||||
# controlling the order explicitly here ensures that rpcbind can
|
||||
# start successfully. The `wants` instead of `requires` should
|
||||
# avoid creating a strict/brittle dependency.
|
||||
wants = [ "systemd-tmpfiles-setup.service" ];
|
||||
after = [ "systemd-tmpfiles-setup.service" ];
|
||||
};
|
||||
|
||||
users.users.rpc = {
|
||||
|
Loading…
Reference in New Issue
Block a user