modules/services/monitoring/smartd.nix: run the daemon with --no-fork to make life easier for upstart

svn path=/nixos/trunk/; revision=29287
This commit is contained in:
Peter Simons 2011-09-14 18:30:10 +00:00
parent d1cf78c756
commit 8abea71eaa

View file

@ -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}";
};
};