Skip to content

Commit

Permalink
fix: restart proc manager if set in config (frappe#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored Nov 28, 2022
1 parent 9c80f5d commit c59d1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bench/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ 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"):
restart_systemd_processes(bench_path=self.name, web_workers=web)
Expand Down
2 changes: 1 addition & 1 deletion bench/config/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def generate_systemd_config(
setup_web_config(bench_info, bench_path)
setup_redis_config(bench_info, bench_path)

update_config({"restart_systemd_on_update": True}, bench_path=bench_path)
update_config({"restart_systemd_on_update": False}, bench_path=bench_path)
update_config({"restart_supervisor_on_update": False}, bench_path=bench_path)


Expand Down

0 comments on commit c59d1ed

Please sign in to comment.