

def do_restart(self):
    try:
        (jobs_removed, webhooks_removed) = self.cfg.reload()
    except ConfigError as e:
        logging.error(('failed parsing config: %s' % str(e)))
        logging.info('config not reloaded')
        return
    for (jobname, sessionid) in jobs_removed:
        self.manager.unload(jobname, sessionid=sessionid)
    for (name, sessionid, cmd, params) in self.cfg.processes:
        if ('start' in params):
            params.pop('start')
        config = ProcessConfig(name, cmd, **update)
        update = True
        try:
            self.manager.get(('%s.%s' % (sessionid, name)))
        except ProcessError:
            update = False
        if update:
            self.manager.update(config, sessionid=sessionid)
        else:
            self.manager.load(config, sessionid=sessionid)
    for (event, url) in webhooks_removed:
        self.webhook_app.unregister(event, url)
    self.plugin_manager.restart_apps(self.cfg, self.manager.loop, self.manager)

dataset/ETHPy150Open benoitc/gaffer/gaffer/gafferd/main.py Server.do_restart/VarMisuse@130/174 `params`->`update`