From 48f70aca65b8627dce6ff124ad1509c9641f1895 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 13 Mar 2020 20:01:37 +0530 Subject: [PATCH] fix: restart supervisor service after conf update --- bench/config/supervisor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bench/config/supervisor.py b/bench/config/supervisor.py index 10e88916..141e97a6 100644 --- a/bench/config/supervisor.py +++ b/bench/config/supervisor.py @@ -8,6 +8,7 @@ import bench from bench.app import get_current_frappe_version, use_rq from bench.utils import get_bench_name, find_executable from bench.config.common_site_config import get_config, update_config, get_gunicorn_workers +from bench.config.production_setup import service # imports - third party imports import click @@ -74,3 +75,6 @@ def update_supervisord_conf(user): with open(supervisord_conf, "w") as f: config.write(f) + + # restart supervisor to take new changes into effect + service('supervisor', 'restart')