diff --git a/modules/services/monitoring/smartd.nix b/modules/services/monitoring/smartd.nix index 154c630e18cf..5a94caefd3bf 100644 --- a/modules/services/monitoring/smartd.nix +++ b/modules/services/monitoring/smartd.nix @@ -70,16 +70,14 @@ in config = mkIf cfg.enable { - jobs.smartd = - { description = "S.M.A.R.T. Daemon"; + jobs.smartd = { + description = "S.M.A.R.T. Daemon"; environment.TZ = config.time.timeZone; startOn = "started syslogd"; - daemonType = "daemon"; - - exec = "${pkgs.smartmontools}/sbin/smartd --pidfile=/var/run/smartd.pid ${smartdFlags}"; + exec = "${pkgs.smartmontools}/sbin/smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}"; }; };