mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
systemctl doesnt start services 2 layers deep
This commit is contained in:
parent
f62341dee9
commit
09d4414dc7
@ -403,7 +403,7 @@ def restart_systemd_processes(bench_path='.', web_workers=False):
|
|||||||
conf = get_config(bench_path=bench_path)
|
conf = get_config(bench_path=bench_path)
|
||||||
bench_name = get_bench_name(bench_path)
|
bench_name = get_bench_name(bench_path)
|
||||||
exec_cmd('sudo systemctl stop -- $(systemctl show -p Requires {bench_name}.target | cut -d= -f2)'.format(bench_name=bench_name))
|
exec_cmd('sudo systemctl stop -- $(systemctl show -p Requires {bench_name}.target | cut -d= -f2)'.format(bench_name=bench_name))
|
||||||
exec_cmd('sudo systemctl start {bench_name}.target'.format(bench_name=bench_name))
|
exec_cmd('sudo systemctl start -- $(systemctl show -p Requires {bench_name}.target | cut -d= -f2)'.format(bench_name=bench_name))
|
||||||
|
|
||||||
def set_default_site(site, bench_path='.'):
|
def set_default_site(site, bench_path='.'):
|
||||||
if not site in get_sites(bench_path=bench_path):
|
if not site in get_sites(bench_path=bench_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user