From 1d2d9881f93df6383d99720c84d6e7397a04bba0 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 9 Aug 2013 15:25:12 -0700 Subject: [PATCH] use the right init script in mon create Signed-off-by: Alfredo Deza --- ceph_deploy/hosts/common.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ceph_deploy/hosts/common.py b/ceph_deploy/hosts/common.py index b7764a8..f5e3b8a 100644 --- a/ceph_deploy/hosts/common.py +++ b/ceph_deploy/hosts/common.py @@ -31,7 +31,12 @@ def mon_create(distro, logger, args, monitor_keyring, hostname): logger.debug('remote hostname: %s' % hostname) path = paths.mon.path(args.cluster, hostname) done_path = paths.mon.done(args.cluster, hostname) - init_path = paths.mon.init(args.cluster, hostname, 'sysvinit') + if distro.name.lower() == 'ubuntu': + init = 'upstart' + else: + init = 'sysvinit' + + init_path = paths.mon.init(args.cluster, hostname, init) configuration = conf.load(args) conf_data = StringIO() -- 2.47.3