Project

General

Profile

Bug #5911 » common.py.patch

use lsb modude to get init - Mark Kirkwood, 08/09/2013 11:12 PM

View differences:

ceph_deploy/hosts/common.py
from ceph_deploy.util.wrappers import check_call
from ceph_deploy.util.context import remote
from ceph_deploy import conf
from ceph_deploy import lsb
from StringIO import StringIO
......
logger.debug('remote hostname: %s' % hostname)
path = paths.mon.path(args.cluster, hostname)
done_path = paths.mon.done(args.cluster, hostname)
if distro.name.lower() == 'ubuntu':
init = 'upstart'
else:
init = 'sysvinit'
init = lsb.choose_init(distro.name, distro.codename)
init_path = paths.mon.init(args.cluster, hostname, init)
(1-1/4)