diff options
author | Sage Weil <sage@inktank.com> | 2012-12-14 13:49:14 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-12-14 13:49:26 -0800 |
commit | 02aca6830ad07f585317bfafc4780c1b50701cb4 (patch) | |
tree | 2143c5c4661dabdf4c29ce2ea7be253026bf8765 | |
parent | 96f40b146b28d817b4d7c48a65d25de2e843c11e (diff) | |
download | ceph-02aca6830ad07f585317bfafc4780c1b50701cb4.tar.gz |
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 <sage@inktank.com>
-rwxr-xr-x | src/ceph-disk-activate | 5 |
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( |