summaryrefslogtreecommitdiffstats
path: root/src/init-ceph.in
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-20 18:02:40 +0200
committerSage Weil <sage@inktank.com>2013-08-23 02:59:46 +0200
commita0f3c643b6df86dc9064ad901eee1be9a70ab8c4 (patch)
treeab9bc051dfdb1761dbbde908ead98cde2e51cee9 /src/init-ceph.in
parentMerge remote-tracking branch 'gh/next' (diff)
downloadceph-a0f3c643b6df86dc9064ad901eee1be9a70ab8c4.tar.xz
ceph-a0f3c643b6df86dc9064ad901eee1be9a70ab8c4.zip
init-ceph: behave if incompletely installed
e.g., Debian 'removed, config remains' state Fixes: #5695 Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/init-ceph.in')
-rw-r--r--src/init-ceph.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init-ceph.in b/src/init-ceph.in
index 7d003e6370c..3a404a46c6f 100644
--- a/src/init-ceph.in
+++ b/src/init-ceph.in
@@ -34,6 +34,10 @@ usage_exit() {
exit
}
+# behave if we are not completely installed (e.g., Debian "removed,
+# config remains" state)
+test -f $LIBDIR/ceph_common.sh || exit 0
+
. $LIBDIR/ceph_common.sh
EXIT_STATUS=0