summary refs log tree commit diff
path: root/modules/services/monitoring/zabbix-server.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2013-06-13 01:56:09 +0200
committeraszlig <aszlig@redmoonstudios.org>2013-06-13 01:56:09 +0200
commitbf28d5c109b8ae7dca06c0f01787c23be704ff1e (patch)
tree72de5c841b145f07e279ed03fe7209af6ac9ec1b /modules/services/monitoring/zabbix-server.nix
parent7cf23a740d1aa09b277244f8295141a5a9756b14 (diff)
downloadnixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.tar
nixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.tar.gz
nixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.tar.bz2
nixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.tar.lz
nixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.tar.xz
nixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.tar.zst
nixpkgs-bf28d5c109b8ae7dca06c0f01787c23be704ff1e.zip
zabbix-server: Add PID file to systemd config.
This is to avoid (in some cases) constant restarting of the Zabbix server, which
causes odds bugs and crashes in the exit handler (if it's too early during
startup).

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/services/monitoring/zabbix-server.nix')
-rw-r--r--modules/services/monitoring/zabbix-server.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/services/monitoring/zabbix-server.nix b/modules/services/monitoring/zabbix-server.nix
index df42071ebba..806aaf4f90a 100644
--- a/modules/services/monitoring/zabbix-server.nix
+++ b/modules/services/monitoring/zabbix-server.nix
@@ -100,6 +100,7 @@ in
         serviceConfig.Type = "forking";
         serviceConfig.Restart = "always";
         serviceConfig.RestartSec = 2;
+        serviceConfig.PIDFile = pidFile;
       };
 
   };