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:
parent
d1cf78c756
commit
8abea71eaa
@ -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}";
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user