nixos/nsd: Improve support for journald/systemd.
Don't fork into the background and just log to stderr. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
141cb70d5c
commit
e8c4fde22d
@ -33,7 +33,6 @@ let
|
|||||||
# the list of dynamically added zones.
|
# the list of dynamically added zones.
|
||||||
zonelistfile: "${stateDir}/var/zone.list"
|
zonelistfile: "${stateDir}/var/zone.list"
|
||||||
database: "${stateDir}/var/nsd.db"
|
database: "${stateDir}/var/nsd.db"
|
||||||
logfile: "${stateDir}/var/nsd.log"
|
|
||||||
pidfile: "${pidFile}"
|
pidfile: "${pidFile}"
|
||||||
xfrdfile: "${stateDir}/var/xfrd.state"
|
xfrdfile: "${stateDir}/var/xfrd.state"
|
||||||
xfrdir: "${stateDir}/tmp"
|
xfrdir: "${stateDir}/tmp"
|
||||||
@ -687,10 +686,9 @@ in
|
|||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "forking";
|
|
||||||
PIDFile = pidFile;
|
PIDFile = pidFile;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
ExecStart = "${pkgs.nsd}/sbin/nsd -c ${configFile}";
|
ExecStart = "${pkgs.nsd}/sbin/nsd -d -c ${configFile}";
|
||||||
};
|
};
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user