anchor.diff:    
         PidFile = ${pidFile}
   
  -      StartAgents = 5
  +      StartAgents = 1
       '';
   
   in
  
positive.code:       };
  
      jobs.zabbix_agent =
        { #name = "zabbix-agent"; !!! mkIf bug
  
          description = "Zabbix agent daemon";
  
  
negative.code:           ''
              mkdir -m 0755 -p ${stateDir} ${logDir}
              chown zabbix ${stateDir} ${logDir}
  
              # Grrr, zabbix_agentd cannot be properly monitored by
              # Upstart.  Upstart's "expect fork/daemon" feature doesn't
              # work because zabbix_agentd runs some programs on
              # startup, and zabbix_agentd doesn't have a flag to
              # prevent daemonizing.
              export PATH=${pkgs.nettools}/bin:$PATH
              ${pkgs.zabbix.agent}/sbin/zabbix_agentd --config ${configFile}
            '';
  
          postStop =
            ''
              pid=$(cat ${pidFile})
              test -n "$pid" && kill "$pid"
              # Wait until they're really gone.
              while ${pkgs.procps}/bin/pgrep -u zabbix zabbix_agentd > /dev/null; do sleep 1; done
            '';
        };
  
      environment.systemPackages = [ pkgs.zabbix.agent ];
  
    };
  
  