2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-23 15:08:24 +00:00

fix: restart proc manager if set in config (#1391)

This commit is contained in:
Ankush Menat 2022-11-28 13:05:00 +05:30 committed by GitHub
parent 9c80f5d24f
commit c59d1edee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ class Bench(Base, Validator):
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)

View File

@ -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)