From: Peter Palfrader Date: Sat, 23 Sep 2017 13:03:04 +0000 (+0200) Subject: provide full path to service X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=1674dfb774049fbcc41b0a7f60b70eedc41bf933;p=mirror%2Fdsa-puppet.git provide full path to service --- diff --git a/modules/ganeti2/files/crazy-multipath-restart b/modules/ganeti2/files/crazy-multipath-restart index ea7046708..6bf4f0b4f 100755 --- a/modules/ganeti2/files/crazy-multipath-restart +++ b/modules/ganeti2/files/crazy-multipath-restart @@ -40,7 +40,7 @@ for p in psutil.process_iter(): # used = p.memory_info().vms if used > 4*1024**3: - subprocess.check_call(['service', 'multipathd', 'restart']) + subprocess.check_call(['/usr/sbin/service', 'multipathd', 'restart']) print("Did restart multipathd, one hopes.") except psutil.NoSuchProcess: pass