Make monit actually switchable off
svn path=/nixos/trunk/; revision=18401
This commit is contained in:
parent
1a05efa66a
commit
a94da97354
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user