nsd: ConditionPathExists all files

This commit is contained in:
Motiejus Jakštys 2023-08-07 14:50:32 +03:00
parent 125ebdac56
commit 9a7e42b95d
2 changed files with 7 additions and 2 deletions

View File

@ -188,7 +188,12 @@
systemd.services.nsd-control-setup = {
requiredBy = ["nsd.service"];
before = ["nsd.service"];
unitConfig.ConditionPathExists = "!/etc/nsd/nsd_control.pem";
unitConfig.ConditionPathExists = [
"!/etc/nsd/nsd_control.key"
"!/etc/nsd/nsd_control.pem"
"!/etc/nsd/nsd_server.key"
"!/etc/nsd/nsd_server.pem"
];
serviceConfig = {
Type = "oneshot";
UMask = 0077;