git.iko.soy/typeable/nixpkgs
on master help sign in
monitoring.monit: get closer to upstream service definition

taken from https://bitbucket.org/tildeslash/monit/src/e02247e0480b19be88e6a908886da83bbb1bc6a3/system/startup/monit.service.in?at=master

commit23ca90b0132a8f2be2575a832a0d4e0aa5a2137f authorAlexander Ried <ried@mytum.de> dateMon 12 Sep 2016, 16:31 (10 years ago) parentfbf0abf
1 file changed+9−4
nixos/modules/services/monitoring/monit.nix+9−4
nixos/modules/services/monitoring/monit.nix+9−4
@@ -36,11 +36,16 @@ in
3636 ];
3737
3838 systemd.services.monit = {
39− description = "Monit system watcher";
40− after = [ "network-interfaces.target" ];
39+ description = "Pro-active monitoring utility for unix systems";
40+ after = [ "network.target" ];
4141 wantedBy = [ "multi-user.target" ];
42− script = "${pkgs.monit}/bin/monit -I -c /etc/monit.conf";
43− serviceConfig.Restart = "always";
42+ serviceConfig = {
43+ ExecStart = "${pkgs.monit}/bin/monit -I -c /etc/monit.conf";
44+ ExecStop = "${pkgs.monit}/bin/monit -c /etc/monit.conf quit";
45+ ExecReload = "${pkgs.monit}/bin/monit -c /etc/monit.conf reload";
46+ KillMode = "process";
47+ Restart = "always";
48+ };
4449 };
4550 };
4651}