mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 07:28:25 +00:00
Merge pull request #1614 from akhilnarang/check-supervisorctl
fix: check whether `supervisorctl` exists before trying to restart
This commit is contained in:
commit
431cc783d1
@ -298,6 +298,9 @@ def patch_sites(bench_path="."):
|
||||
|
||||
|
||||
def restart_supervisor_processes(bench_path=".", web_workers=False, _raise=False):
|
||||
if which("supervisorctl") is None:
|
||||
return
|
||||
|
||||
from bench.bench import Bench
|
||||
|
||||
bench = Bench(bench_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user