@@ -110,7 +110,7 @@ def restart_unity(*args):
110 status = _get_unity_status()
110 status = _get_unity_status()
111 if "start/" in status:
111 if "start/" in status:
113− output = subprocess.check_output(['initctl', 'stop', 'unity8'])
113+ output = subprocess.check_output(['/sbin/initctl', 'stop', 'unity8'])
114 logger.info(output)
114 logger.info(output)
115 except subprocess.CalledProcessError as e:
115 except subprocess.CalledProcessError as e:
116 e.args += (
116 e.args += (
@@ -119,7 +119,7 @@ def restart_unity(*args):
122− command = ['initctl', 'start', 'unity8'] + list(args)
122+ command = ['/sbin/initctl', 'start', 'unity8'] + list(args)
123 output = subprocess.check_output(
123 output = subprocess.check_output(
125 stderr=subprocess.STDOUT,
125 stderr=subprocess.STDOUT,
@@ -137,7 +137,7 @@ def restart_unity(*args):
137def _get_unity_status():
137def _get_unity_status():
139 return subprocess.check_output([
139 return subprocess.check_output([
140− 'initctl',
140+ '/sbin/initctl',
141 'status',
141 'status',