diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-12-15 13:52:52 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-12-15 13:56:08 +0100 |
commit | 9f6a0545174e6c3635e6b41349af0de22a8312cc (patch) | |
tree | 3858fe307e633b700dc328729c4c6fb7afc33c91 /nixos/modules/services/networking/kea.nix | |
parent | cd6ccb17370dcc227f773050c765dff7f219e7f1 (diff) | |
download | nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.tar nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.tar.gz nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.tar.bz2 nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.tar.lz nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.tar.xz nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.tar.zst nixlib-9f6a0545174e6c3635e6b41349af0de22a8312cc.zip |
nixos/kea: preserve shared runtime directory
When one service gets restarted it may otherwise remove the shared runtime directory for all kea services. The idea for this solution was provided by Jeffrey C. Ollie in https://github.com/NixOS/nixpkgs/issues/265826#issuecomment-1841424019. Closes: #265826
Diffstat (limited to 'nixos/modules/services/networking/kea.nix')
-rw-r--r-- | nixos/modules/services/networking/kea.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/kea.nix b/nixos/modules/services/networking/kea.nix index 945f4113bd47..5ca705976c41 100644 --- a/nixos/modules/services/networking/kea.nix +++ b/nixos/modules/services/networking/kea.nix @@ -255,6 +255,7 @@ in User = "kea"; ConfigurationDirectory = "kea"; RuntimeDirectory = "kea"; + RuntimeDirectoryPreserve = true; StateDirectory = "kea"; UMask = "0077"; }; |