@@ -110,7 +110,7 @@ def restart_unity(*args):
110110 status = _get_unity_status()
111111 if "start/" in status:
112112 try:
113− output = subprocess.check_output(['initctl', 'stop', 'unity8'])
113+ output = subprocess.check_output(['/sbin/initctl', 'stop', 'unity8'])
114114 logger.info(output)
115115 except subprocess.CalledProcessError as e:
116116 e.args += (
@@ -119,7 +119,7 @@ def restart_unity(*args):
119119 raise
120120
121121 try:
122− command = ['initctl', 'start', 'unity8'] + list(args)
122+ command = ['/sbin/initctl', 'start', 'unity8'] + list(args)
123123 output = subprocess.check_output(
124124 command,
125125 stderr=subprocess.STDOUT,
@@ -137,7 +137,7 @@ def restart_unity(*args):
137137def _get_unity_status():
138138 try:
139139 return subprocess.check_output([
140− 'initctl',
140+ '/sbin/initctl',
141141 'status',
142142 'unity8'
143143 ])