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 <sage@inktank.com>
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(