lol

nixos.openntpd: don't spam systemd journal

Starting `ntpd` with the `-d` option spams the systemd journal.
Instead, let the server fork.

authored by

Ricardo M. Correia and committed by
Robin Gloster
d9ae8869 ffcb272e

+8 -1
+8 -1
nixos/modules/services/networking/openntpd.nix
··· 11 ${concatStringsSep "\n" (map (s: "server ${s}") cfg.servers)} 12 ${cfg.extraConfig} 13 ''; 14 in 15 { 16 ###### interface ··· 67 wants = [ "network-online.target" "time-sync.target" ]; 68 before = [ "time-sync.target" ]; 69 after = [ "dnsmasq.service" "bind.service" "network-online.target" ]; 70 - serviceConfig.ExecStart = "${package}/sbin/ntpd -d -f ${cfgFile} ${cfg.extraOptions}"; 71 }; 72 }; 73 }
··· 11 ${concatStringsSep "\n" (map (s: "server ${s}") cfg.servers)} 12 ${cfg.extraConfig} 13 ''; 14 + 15 + pidFile = "/run/openntpd.pid"; 16 + 17 in 18 { 19 ###### interface ··· 70 wants = [ "network-online.target" "time-sync.target" ]; 71 before = [ "time-sync.target" ]; 72 after = [ "dnsmasq.service" "bind.service" "network-online.target" ]; 73 + serviceConfig = { 74 + ExecStart = "${package}/sbin/ntpd -f ${cfgFile} -p ${pidFile} ${cfg.extraOptions}"; 75 + Type = "forking"; 76 + PIDFile = pidFile; 77 + }; 78 }; 79 }; 80 }