about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2021-04-24 17:58:19 +0000
committerGitHub <noreply@github.com>2021-04-24 17:58:19 +0000
commit1c62c0f37092c101f6289d8975e694398bebfead (patch)
tree41b67d84a6427d208cabc7c78698432c9606daf2 /nixos
parentbdb72489444ab0522f4a143ea53b655a91b1845d (diff)
parentddf567cd5a26eefab925ebc2e50d15d61e82257a (diff)
downloadnixlib-1c62c0f37092c101f6289d8975e694398bebfead.tar
nixlib-1c62c0f37092c101f6289d8975e694398bebfead.tar.gz
nixlib-1c62c0f37092c101f6289d8975e694398bebfead.tar.bz2
nixlib-1c62c0f37092c101f6289d8975e694398bebfead.tar.lz
nixlib-1c62c0f37092c101f6289d8975e694398bebfead.tar.xz
nixlib-1c62c0f37092c101f6289d8975e694398bebfead.tar.zst
nixlib-1c62c0f37092c101f6289d8975e694398bebfead.zip
Merge pull request #120537 from symphorien/nagios-restart
nixos/nagios: use the correct option to restart on config change
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/nagios.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/nagios.nix b/nixos/modules/services/monitoring/nagios.nix
index 9ac6869068f2..61214508a9c6 100644
--- a/nixos/modules/services/monitoring/nagios.nix
+++ b/nixos/modules/services/monitoring/nagios.nix
@@ -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;
       };
     };