anchor.diff:  
           description = "Zabbix server daemon";
   
  -        startOn = if cfg.dbServer == "localhost" then "started postgresql" else "filesystem";
  -        stopOn = if cfg.dbServer == "localhost" then "stopping postgresql" else "starting shutdown";
  +        startOn = "filesystem";
   
           preStart =
             ''
  
positive.code:         # just monitor `cat'.
          script =
            ''
              export PATH=${pkgs.nettools}/bin:$PATH
              rm -f ${stateDir}/dummy
              mkfifo ${stateDir}/dummy
              cat ${stateDir}/dummy &
  
negative.code:             fi
            '';
  
          path = [ pkgs.nettools ];
  
          # Zabbix doesn't have an option not to daemonize, and doesn't
          # daemonize in a way that allows Upstart to track it.  So to
          # make sure that we notice when it goes down, we start Zabbix
  