3
0
Fork 0
forked from mirrors/nixpkgs

nixos/kubernetes: add missing systemd restart options

This commit is contained in:
Adam Finn Tulinius 2019-02-21 14:34:22 +01:00
parent 49d963855a
commit 291c809888
2 changed files with 4 additions and 0 deletions

View file

@ -64,6 +64,8 @@ in
${cfg.extraOpts}
'';
WorkingDirectory = top.dataDir;
Restart = "on-failure";
RestartSec = 5;
};
};

View file

@ -76,6 +76,8 @@ in
WorkingDirectory = top.dataDir;
User = "kubernetes";
Group = "kubernetes";
Restart = "on-failure";
RestartSec = 5;
};
};