mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 15:38:25 +00:00
fix: check whether supervisorctl
exists before trying to restart
Resolves #1607 Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
4c6ce6331d
commit
01a3bf4dfd
@ -298,6 +298,9 @@ def patch_sites(bench_path="."):
|
|||||||
|
|
||||||
|
|
||||||
def restart_supervisor_processes(bench_path=".", web_workers=False, _raise=False):
|
def restart_supervisor_processes(bench_path=".", web_workers=False, _raise=False):
|
||||||
|
if which("supervisorctl") is None:
|
||||||
|
return
|
||||||
|
|
||||||
from bench.bench import Bench
|
from bench.bench import Bench
|
||||||
|
|
||||||
bench = Bench(bench_path)
|
bench = Bench(bench_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user