diff --git a/nixos/modules/services/networking/racoon.nix b/nixos/modules/services/networking/racoon.nix index 9428d9112a1b..86e13d1ea0d6 100644 --- a/nixos/modules/services/networking/racoon.nix +++ b/nixos/modules/services/networking/racoon.nix @@ -36,7 +36,10 @@ in { Type = "forking"; Restart = "always"; }; - preStart = "rm /var/run/racoon.pid || true"; + preStart = '' + rm /var/run/racoon.pid || true + mkdir -p /var/racoon + ''; }; }; }