/sbin apparently isn't in the path when udev runs us.
Signed-off-by: Sage Weil <sage@inktank.com>
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',
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),
):
fstype = _check_output(
args=[
- 'blkid',
+ '/sbin/blkid',
# we don't want stale cached results
'-p',
'-s', 'TYPE',