From 02aca6830ad07f585317bfafc4780c1b50701cb4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 14 Dec 2012 13:49:14 -0800 Subject: [PATCH] ceph-disk-activate: mark dir as upstart-managed Mark the directory so that upstart will manage the daemon. Eventually, this should be generalized to allow ceph-disk-* usage with other init systems. Signed-off-by: Sage Weil --- src/ceph-disk-activate | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ceph-disk-activate b/src/ceph-disk-activate index 5fcc5bd177a5a..f78ae17ce889d 100755 --- a/src/ceph-disk-activate +++ b/src/ceph-disk-activate @@ -474,6 +474,11 @@ def activate( keyring=keyring, ) + # indicate this daemon is managed by upstart + if not os.path.exists(os.path.join(path, 'upstart')): + with file(os.path.join(path, 'upstart'), 'w'): + pass + if not os.path.exists(os.path.join(path, 'active')): log.debug('Authorizing OSD key...') auth_key( -- 2.39.5