summaryrefslogtreecommitdiff
path: root/src/ceph_common.sh
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-04-23 15:55:03 -0700
committerSage Weil <sage@newdream.net>2009-04-23 16:43:44 -0700
commit24b4d79059d3097d1610dea44516ed98c44c6d24 (patch)
treecce197b389117e6fde3bdd817775377af1d2b7bc /src/ceph_common.sh
parentf8dc1a5261417830f538a7b9c4c3ab407d698a68 (diff)
downloadceph-24b4d79059d3097d1610dea44516ed98c44c6d24.tar.gz
initscript: run valgrind with specified options
Diffstat (limited to 'src/ceph_common.sh')
-rw-r--r--src/ceph_common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ceph_common.sh b/src/ceph_common.sh
index c8856e55af8..7350ff12f35 100644
--- a/src/ceph_common.sh
+++ b/src/ceph_common.sh
@@ -42,12 +42,14 @@ check_host() {
}
do_cmd() {
- [ $verbose -eq 1 ] && echo "--- $host:$dir# $1"
if [ -z "$ssh" ]; then
+ [ $verbose -eq 1 ] && echo "--- $host# $1"
ulimit -c unlimited
bash -c "$1" || { echo "failed: '$1'" ; exit 1; }
else
- $ssh "cd $dir ; ulimit -c unlimited ; $1" || { echo "failed: '$ssh $1'" ; exit 1; }
+ [ $verbose -eq 1 ] && echo "--- $host# cd $dir ; ulimit -c unlimited ; $1"
+ echo $ssh $2 "cd $dir ; ulimit -c unlimited ; $1"
+ $ssh $2 "cd $dir ; ulimit -c unlimited ; $1" || { echo "failed: '$ssh $1'" ; exit 1; }
fi
}