From b61d4ac6a5018f75d187761071be57fd4f6ae006 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 28 Jan 2015 14:48:01 +0100 Subject: [PATCH] ntpd: Fork into the background With -n, ntpd will write log messages to both syslog and stderr, which is ugly. --- nixos/modules/services/networking/ntpd.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/ntpd.nix b/nixos/modules/services/networking/ntpd.nix index 1988c7140d3..a9183577d0a 100644 --- a/nixos/modules/services/networking/ntpd.nix +++ b/nixos/modules/services/networking/ntpd.nix @@ -82,7 +82,8 @@ in ''; serviceConfig = { - ExecStart = "@${ntp}/bin/ntpd ntpd -g -n ${ntpFlags}"; + ExecStart = "@${ntp}/bin/ntpd ntpd -g ${ntpFlags}"; + Type = "forking"; }; };