anchor.diff:               throw "invalid daemon type `${job.daemonType}'"
             )}
   
  +          ${optionalString (job.setuid != "") ''
  +            setuid ${job.setuid}
  +          ''}
  +
  +          ${optionalString (job.setgid != "") ''
  +            setuid ${job.setgid}
  +          ''}
  +
             ${job.extraConfig}
           '';
   
  
positive.code:     # do status queries.
      services.dbus.packages = [ upstart ];
  
    };
  
  }
  
negative.code:         The value <literal>daemon</literal> means that the daemon will
          fork twice.  The value <literal>stop</literal> means that the
          daemon will raise the SIGSTOP signal to indicate readiness.
        '';
      };
  
      setuid = mkOption {
        type = types.string;
        check = userExists;
        default = "";
        description = ''
          Run the daemon as a different user.
        '';
      };
  
      setgid = mkOption {
        type = types.string;
        check = groupExists;
        default = "";
        description = ''
          Run the daemon as a different group.
        '';
      };
  
  