Skip to content

Commit

Permalink
fix: restart supervisor service after conf update
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 13, 2020
1 parent 1f0a5ce commit 48f70ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bench/config/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
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
Expand Down Expand Up @@ -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')

0 comments on commit 48f70ac

Please sign in to comment.