From 1674dfb774049fbcc41b0a7f60b70eedc41bf933 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 23 Sep 2017 15:03:04 +0200 Subject: [PATCH] provide full path to service --- modules/ganeti2/files/crazy-multipath-restart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1