Skip to content

Commit

Permalink
fix: restart proc manager if set in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Nov 24, 2022
1 parent d198465 commit 16b3405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def reload(self, web=False, supervisor=True, systemd=True):

if conf.get("developer_mode"):
restart_process_manager(bench_path=self.name, web_workers=web)
if supervisor and conf.get("restart_supervisor_on_update"):
if supervisor or conf.get("restart_supervisor_on_update"):
restart_supervisor_processes(bench_path=self.name, web_workers=web)
if systemd and conf.get("restart_systemd_on_update"):
if systemd or conf.get("restart_systemd_on_update"):
restart_systemd_processes(bench_path=self.name, web_workers=web)

def get_installed_apps(self) -> List:
Expand Down

0 comments on commit 16b3405

Please sign in to comment.