summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ceph-disk-activate5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ceph-disk-activate b/src/ceph-disk-activate
index 5fcc5bd177a..f78ae17ce88 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(