dnsmasq restarts if /etc/hosts file is changed by nixos-rebuild
This commit is contained in:
parent
661e1016b1
commit
4f7819b89c
@ -98,6 +98,7 @@ in
|
|||||||
ExecStart = "${dnsmasq}/bin/dnsmasq -k --enable-dbus --user=dnsmasq -C ${dnsmasqConf}";
|
ExecStart = "${dnsmasq}/bin/dnsmasq -k --enable-dbus --user=dnsmasq -C ${dnsmasqConf}";
|
||||||
ExecReload = "${dnsmasq}/bin/kill -HUP $MAINPID";
|
ExecReload = "${dnsmasq}/bin/kill -HUP $MAINPID";
|
||||||
};
|
};
|
||||||
|
restartTriggers = [ config.environment.etc.hosts.source ];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user