mirror of
https://github.com/frappe/bench.git
synced 2025-01-27 00:08:24 +00:00
restart supervisor before restarting workers
This commit is contained in:
parent
c295be6114
commit
c6f8800a2f
@ -407,6 +407,8 @@ def restart_supervisor_processes(bench_path='.', web_workers=False):
|
|||||||
else:
|
else:
|
||||||
group = 'frappe:'
|
group = 'frappe:'
|
||||||
|
|
||||||
|
if find_executable('systemctl'):
|
||||||
|
exec_cmd('sudo systemctl restart supervisor.service && sleep 1')
|
||||||
exec_cmd('sudo supervisorctl restart {group}'.format(group=group), cwd=bench_path)
|
exec_cmd('sudo supervisorctl restart {group}'.format(group=group), cwd=bench_path)
|
||||||
|
|
||||||
def set_default_site(site, bench_path='.'):
|
def set_default_site(site, bench_path='.'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user