ceph-disk:SLE11sp3 /sbin/service cannot take paramteres that start with '--'
so use the init script directly.
Signed-off-by: Owen Synge <osynge@suse.com>
(cherry picked from commit
fff38a0f18d1986f63a31e26d2b84749adab88af)
],
)
elif os.path.exists(os.path.join(path, 'sysvinit')):
- if os.path.exists('/usr/sbin/service'):
- svc = '/usr/sbin/service'
- else:
- svc = '/sbin/service'
command_check_call(
[
- svc,
- 'ceph',
+ '/etc/init.d/ceph',
'--cluster',
'{cluster}'.format(cluster=cluster),
'start',