From c59d1edee5e2c22f55f91ac946df8e09535c8927 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 28 Nov 2022 13:05:00 +0530 Subject: [PATCH] fix: restart proc manager if set in config (#1391) --- bench/bench.py | 2 +- bench/config/systemd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/bench.py b/bench/bench.py index 8586c712..e799838a 100644 --- a/bench/bench.py +++ b/bench/bench.py @@ -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) diff --git a/bench/config/systemd.py b/bench/config/systemd.py index 0d4e1243..a19de662 100644 --- a/bench/config/systemd.py +++ b/bench/config/systemd.py @@ -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)