Author: eelco
Date: Thu Jan 26 13:32:02 2012
New Revision: 31852
URL: https://nixos.org/websvn/nix/?rev=31852&sc=1

Log:
* zabbix-server: don't require PostgreSQL to be started
  if we're using a remote server.

Modified:
   nixos/trunk/modules/services/monitoring/zabbix-server.nix

Modified: nixos/trunk/modules/services/monitoring/zabbix-server.nix
==============================================================================
--- nixos/trunk/modules/services/monitoring/zabbix-server.nix   Thu Jan 26 
13:13:00 2012        (r31851)
+++ nixos/trunk/modules/services/monitoring/zabbix-server.nix   Thu Jan 26 
13:32:02 2012        (r31852)
@@ -76,8 +76,8 @@
 
         description = "Zabbix server daemon";
 
-        startOn = "started postgresql";
-        stopOn = "stopping postgresql";
+        startOn = if cfg.dbServer == "localhost" then "started postgresql" 
else "filesystem";
+        stopOn = if cfg.dbServer == "localhost" then "stopping postgresql" 
else "starting shutdown";
 
         preStart =
           ''
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to