summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-01-25 22:52:03 -0800
committerSage Weil <sage@inktank.com>2013-02-13 12:30:22 -0800
commitb8aa4769a62e0d88174678cbefd89d9ee2baceea (patch)
tree89bdbd5851d9e9b2d36f79a059062b1307f8d4cc
parent50cbd10531699db1ee62c9b7d7174bf286bc7cc8 (diff)
downloadceph-b8aa4769a62e0d88174678cbefd89d9ee2baceea.tar.gz
init-ceph: consider sysvinit-tagged dirs as local
If there is a 'sysvinit' file in the daemon directory in the default location (/var/lib/ceph/$type/ceph-$id), consider it sysvinit-managed. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/ceph_common.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ceph_common.sh b/src/ceph_common.sh
index b66b1de3a53..9231b09c4af 100644
--- a/src/ceph_common.sh
+++ b/src/ceph_common.sh
@@ -45,6 +45,13 @@ check_host() {
#echo host for $name is $host, i am $hostname
+ # sysvinit managed instance in standird location?
+ if [ -e "/var/lib/ceph/$type/ceph-$id/sysvinit" ]; then
+ host="$hostname"
+ echo "=== $type.$id === "
+ return 0
+ fi
+
# ignore all sections without 'host' defined
if [ -z "$host" ]; then
return 1