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