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
1 changed files with 3 additions and 5 deletions

View File

@ -70,16 +70,14 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
jobs.smartd = jobs.smartd = {
{ description = "S.M.A.R.T. Daemon"; description = "S.M.A.R.T. Daemon";
environment.TZ = config.time.timeZone; environment.TZ = config.time.timeZone;
startOn = "started syslogd"; startOn = "started syslogd";
daemonType = "daemon"; exec = "${pkgs.smartmontools}/sbin/smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}";
exec = "${pkgs.smartmontools}/sbin/smartd --pidfile=/var/run/smartd.pid ${smartdFlags}";
}; };
}; };