Make monit actually switchable off

svn path=/nixos/trunk/; revision=18401
This commit is contained in:
Michael Raskin 2009-11-18 09:29:43 +00:00
parent 1a05efa66a
commit a94da97354

View File

@ -3,7 +3,7 @@
{config, pkgs, ...}: {config, pkgs, ...}:
let inherit (pkgs.lib) mkOption; let inherit (pkgs.lib) mkOption mkIf;
in in
{ {
@ -37,7 +37,7 @@ in
mode = "0400"; mode = "0400";
} }
]; ];
jobs.monit = { jobs.monit = mkIf config.services.monit.enable {
description = "Monit system watcher"; description = "Monit system watcher";
startOn = config.services.monit.startOn; startOn = config.services.monit.startOn;