provide full path to service
authorPeter Palfrader <peter@palfrader.org>
Sat, 23 Sep 2017 13:03:04 +0000 (15:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 23 Sep 2017 13:03:04 +0000 (15:03 +0200)
modules/ganeti2/files/crazy-multipath-restart

index ea70467..6bf4f0b 100755 (executable)
@@ -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