modules(acme-dns): use systemd for statedir
This commit is contained in:
parent
a598c892f5
commit
2ed18d1a98
1 changed files with 1 additions and 5 deletions
|
@ -97,15 +97,11 @@ in
|
|||
serviceConfig = {
|
||||
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
|
||||
DynamicUser = true;
|
||||
BindPaths = [ cfg.stateDir ];
|
||||
StateDirectory = "acme-dns";
|
||||
ExecStart = "${cfg.package}/bin/acme-dns -d -c ${configFile}";
|
||||
Restart = "always";
|
||||
RestartSec = "4s";
|
||||
};
|
||||
|
||||
preStart = ''
|
||||
mkdir -p ${cfg.stateDir}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue