2
0
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:
Akhil Narang 2025-01-07 12:45:44 +05:30 committed by GitHub
commit 431cc783d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)