From 74b562703c422890c67b2a88d7b18242f64949dc Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 13 Feb 2013 15:49:42 -0800 Subject: [PATCH] ceph-disk-activate: specify full path for blkid, initctl, service /sbin apparently isn't in the path when udev runs us. Signed-off-by: Sage Weil (cherry picked from commit f06b45e66315310abb0720e021da377186455048) --- src/ceph-disk-activate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ceph-disk-activate b/src/ceph-disk-activate index 18c33ef3d3d29..13c83cec86413 100755 --- a/src/ceph-disk-activate +++ b/src/ceph-disk-activate @@ -297,7 +297,7 @@ def start_daemon( if os.path.exists(os.path.join(path,'upstart')): subprocess.check_call( args=[ - 'initctl', + '/sbin/initctl', # use emit, not start, because start would fail if the # instance was already running 'emit', @@ -314,7 +314,7 @@ def start_daemon( elif os.path.exists(os.path.join(path, 'sysvinit')): subprocess.check_call( args=[ - 'service', + '/usr/sbin/service', 'ceph', 'start', 'osd.{osd_id}'.format(osd_id=osd_id), @@ -331,7 +331,7 @@ def detect_fstype( ): fstype = _check_output( args=[ - 'blkid', + '/sbin/blkid', # we don't want stale cached results '-p', '-s', 'TYPE', -- 2.39.5