Skip to content
Newer
Older
100755 42 lines (34 sloc) 1.08 KB
fbd0f95 @jkreps Initial import
jkreps authored Jan 2, 2009
1
3f78a7e @jkreps Add license to scripts.
jkreps authored Jan 14, 2009
2 #
4786eae @jkreps Add cluster control scripts. Patch on http://code.google.com/p/projec…
jkreps authored Mar 2, 2009
3 # Copyright 2008-2009 bebo, Inc
3f78a7e @jkreps Add license to scripts.
jkreps authored Jan 14, 2009
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
4786eae @jkreps Add cluster control scripts. Patch on http://code.google.com/p/projec…
jkreps authored Mar 2, 2009
18 # Standard include defining ways to determine VOLDEMORT_HOME, etc.
fbd0f95 @jkreps Initial import
jkreps authored Jan 2, 2009
19
4786eae @jkreps Add cluster control scripts. Patch on http://code.google.com/p/projec…
jkreps authored Mar 2, 2009
20 #export VOL_SSH_OPTS=""
fbd0f95 @jkreps Initial import
jkreps authored Jan 2, 2009
21
4786eae @jkreps Add cluster control scripts. Patch on http://code.google.com/p/projec…
jkreps authored Mar 2, 2009
22 this="$0"
23 while [ -h "$this" ]; do
24 ls=`ls -ld "$this"`
25 link=`expr "$ls" : '.*-> \(.*\)$'`
26 if expr "$link" : '.*/.*' > /dev/null; then
27 this="$link"
28 else
29 this=`dirname "$this"`/"$link"
30 fi
fbd0f95 @jkreps Initial import
jkreps authored Jan 2, 2009
31 done
32
4786eae @jkreps Add cluster control scripts. Patch on http://code.google.com/p/projec…
jkreps authored Mar 2, 2009
33 # convert relative path to absolute path
34 bin=`dirname "$this"`
35 script=`basename "$this"`
36 bin=`cd "$bin"; pwd`
37 this="$bin/$script"
38
39 export VOL_HOME=`dirname "$this"`/..
40 export VOL_CONF_DIR="$VOL_HOME"
41
Something went wrong with that request. Please try again.