Skip to content

Commit

Permalink
fix: Respect bench config during restart
Browse files Browse the repository at this point in the history
Fixes #1261
  • Loading branch information
gavindsouza committed Mar 17, 2022
1 parent 451712e commit 25f49c2
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 @@ -138,9 +138,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 25f49c2

Please sign in to comment.