Ahh, maybe it's the fact that it's a path
This commit is contained in:
parent
1186de6c36
commit
4196468cf8
@ -323,20 +323,22 @@ let
|
|||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
MemoryDenyWriteExecute = true;
|
MemoryDenyWriteExecute = true;
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
# LimitNOFILE = 4096;
|
LimitNOFILE = 4096;
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
# Server will retry -- this results in stacking
|
# Server will retry -- this results in stacking
|
||||||
Restart = "never";
|
Restart = "never";
|
||||||
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
||||||
SecureBits = "keep-caps";
|
SecureBits = "keep-caps";
|
||||||
# ReadWritePaths = [ "${dirOf cfg.kdc.database}" ];
|
ReadWritePaths = [ "${dirOf cfg.kdc.database}" ];
|
||||||
ExecStart = pkgs.writeShellScript "launch-heimdal-hpropd.sh"
|
ExecStart = let
|
||||||
(concatStringsSep " " [
|
startScript = pkgs.writeShellScript "launch-heimdal-hpropd.sh"
|
||||||
"${pkgs.heimdal}/libexec/heimdal/hpropd"
|
(concatStringsSep " " [
|
||||||
"--database=sqlite:${cfg.kdc.database}"
|
"${pkgs.heimdal}/libexec/heimdal/hpropd"
|
||||||
"--keytab=${cfg.kdc.secondary.keytabs.hpropd}"
|
"--database=sqlite:${cfg.kdc.database}"
|
||||||
]);
|
"--keytab=${cfg.kdc.secondary.keytabs.hpropd}"
|
||||||
|
]);
|
||||||
|
in "${startScript}";
|
||||||
};
|
};
|
||||||
unitConfig.ConditionPathExists =
|
unitConfig.ConditionPathExists =
|
||||||
[ cfg.kdc.database cfg.kdc.secondary.keytabs.hpropd ];
|
[ cfg.kdc.database cfg.kdc.secondary.keytabs.hpropd ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user