Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b5390649c551
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 97f93789a9cc
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 28, 2018

  1. Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    690fcc9 View commit details

Commits on Mar 29, 2018

  1. Merge pull request #38020 from ryantm/monit-reload

    nixos/monit: restart if config changes
    wmertens authored Mar 29, 2018
    Copy the full SHA
    97f9378 View commit details
Showing with 6 additions and 10 deletions.
  1. +6 −10 nixos/modules/services/monitoring/monit.nix
16 changes: 6 additions & 10 deletions nixos/modules/services/monitoring/monit.nix
Original file line number Diff line number Diff line change
@@ -26,16 +26,10 @@ in

environment.systemPackages = [ pkgs.monit ];

environment.etc = [
{
source = pkgs.writeTextFile {
name = "monitrc";
text = config.services.monit.config;
};
target = "monitrc";
mode = "0400";
}
];
environment.etc."monitrc" = {
text = config.services.monit.config;
mode = "0400";
};

systemd.services.monit = {
description = "Pro-active monitoring utility for unix systems";
@@ -48,6 +42,8 @@ in
KillMode = "process";
Restart = "always";
};
restartTriggers = [ config.environment.etc."monitrc".source ];
};

};
}