From 0cd9ff9fcc927cb7a746003fbe4c831bfdca10f1 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 25 Nov 2011 17:09:44 +0000 Subject: [PATCH] smartd: run smartd daemon using the given search path to improve readability of ps output svn path=/nixos/trunk/; revision=30569 --- modules/services/monitoring/smartd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/services/monitoring/smartd.nix b/modules/services/monitoring/smartd.nix index a4c24c794d6..2427f29020e 100644 --- a/modules/services/monitoring/smartd.nix +++ b/modules/services/monitoring/smartd.nix @@ -77,7 +77,9 @@ in startOn = "started syslogd"; - exec = "${pkgs.smartmontools}/sbin/smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}"; + path = [ pkgs.smartmontools ]; + + exec = "smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}"; }; };