feat: will restart dns when the related files are changed
This commit is contained in:
parent
3860db8098
commit
c87fec1a65
1 changed files with 10 additions and 5 deletions
|
@ -415,11 +415,16 @@ in {
|
||||||
++ create_cache_networks;
|
++ create_cache_networks;
|
||||||
};
|
};
|
||||||
|
|
||||||
# deletes teh journal files evey start so it no longer stalls out
|
systemd.services.bind = {
|
||||||
systemd.services.bind.preStart = ''
|
# deletes teh journal files evey start so it no longer stalls out
|
||||||
rm -vf /etc/skynet/dns/*.jnl
|
preStart = ''
|
||||||
rm -vf /etc/skynet/dns/*.jbk
|
rm -vf /etc/skynet/dns/*.jnl
|
||||||
'';
|
rm -vf /etc/skynet/dns/*.jbk
|
||||||
|
'';
|
||||||
|
restartTriggers = [
|
||||||
|
"${config.environment.etc."skynet/dns/skynet.ie".source}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# creates a folder in /etc for the dns to use
|
# creates a folder in /etc for the dns to use
|
||||||
users.users.named = {
|
users.users.named = {
|
||||||
|
|
Loading…
Reference in a new issue