From 09d4414dc7394d21a31ca82467d22dcc23d8abe4 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Mon, 30 Apr 2018 19:48:56 +0530 Subject: [PATCH] systemctl doesnt start services 2 layers deep --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index f0bb0c63..7b079d35 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -403,7 +403,7 @@ def restart_systemd_processes(bench_path='.', web_workers=False): conf = get_config(bench_path=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 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='.'): if not site in get_sites(bench_path=bench_path):