2
0
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:
Ameya Shenoy 2018-04-30 19:48:56 +05:30
parent f62341dee9
commit 09d4414dc7
No known key found for this signature in database
GPG Key ID: 735490161CD5C91E

View File

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