def _restart(self, options): wsgidapp = WsgidApp(options.app_path) logger.info("Restarting worker processes at {0}...".format(options.app_path)) pids = wsgidapp.worker_pids() self._kill_pids(pids, options.send_signal, 'worker')
def _stop(self, options): wsgidapp = WsgidApp(options.app_path) logger.info("Stopping master processes at {0}...".format(options.app_path)) pids = wsgidapp.master_pids() self._kill_pids(pids, options.send_signal, 'master')