def METHOD_NAME(self):
    try:
        self._parse_args()
        os.nice(config.getint('vars', 'vdsm_nice'))
        env = os.environ.copy()
        # Python path is needed to get sitecustomize.py imported from
        # target directory.
        pythonpath = os.path.dirname(self._args.target[0])
        if 'PYTHONPATH' in env:
            pythonpath += ':' + env['PYTHONPATH']
        env.update({
            'LIBVIRT_DEBUG': config.get(
                'vars', 'libvirt_env_variable_debug'),
            'LIBVIRT_LOG_FILTERS': config.get(
                'vars', 'libvirt_env_variable_log_filters'),
            'LIBVIRT_LOG_OUTPUTS': config.get(
                'vars', 'libvirt_env_variable_log_outputs'),
            'LC_ALL': 'C.UTF8',
            'PYTHONPATH': pythonpath,
        })
        cmd = [self._args.target[0]] + self._args.targetOptions
        if self._args.stdin:
            fdin = os.open(self._args.stdin, os.O_RDONLY)
            os.dup2(fdin, sys.stdin.fileno())
            os.close(fdin)
        # stdout and stderr redirection should be in last minute,
        # otherwise it swallows error messages from daemonAdapter when
        # redirected to /dev/null.
        if self._args.stdout:
            fdout = os.open(
                self._args.stdout,
                os.O_WRONLY | os.O_CREAT | os.O_APPEND,
                S_IRUSR | S_IWUSR
            )
            os.dup2(fdout, sys.stdout.fileno())
            os.close(fdout)
        if self._args.stderr:
            fderr = os.open(
                self._args.stderr,
                os.O_WRONLY | os.O_CREAT | os.O_APPEND,
                S_IRUSR | S_IWUSR
            )
            os.dup2(fderr, sys.stderr.fileno())
            os.close(fderr)
        os.execve(cmd[0], cmd, env)
    except Exception:
        self._log("Error in daemonAdapater: %s " % traceback.format_exc())
    finally:
        return 1