forked from mirrors/nixpkgs
Merge pull request #120537 from symphorien/nagios-restart
nixos/nagios: use the correct option to restart on config change
This commit is contained in:
commit
1c62c0f370
|
@ -192,6 +192,7 @@ in
|
|||
path = [ pkgs.nagios ] ++ cfg.plugins;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
restartTriggers = [ nagiosCfgFile ];
|
||||
|
||||
serviceConfig = {
|
||||
User = "nagios";
|
||||
|
@ -201,7 +202,6 @@ in
|
|||
LogsDirectory = "nagios";
|
||||
StateDirectory = "nagios";
|
||||
ExecStart = "${pkgs.nagios}/bin/nagios /etc/nagios.cfg";
|
||||
X-ReloadIfChanged = nagiosCfgFile;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue