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:
parent
9c80f5d24f
commit
c59d1edee5
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user