sections="$name $type global"
# this host?
- host=`$CCONF -c $conf -s $name -s $type -s global host`
+ host=`$CCONF --conf_file $conf -s $name -s $type -s global host`
ssh=""
cmd=""
if [[ $host != "" ]]; then
# we'll need to ssh into that host
ssh="ssh root@$host"
- cd_path=`$CCONF -c $conf -s $name -s $type -s global "ssh path"`
+ cd_path=`$CCONF --conf_file $conf -s $name -s $type -s global "ssh path"`
fi
else
host=$hostname
if [[ $name =~ "mon" ]]; then
get_conf mon_path "" "mon path" $sections
cmd="$BINDIR/cmon $mon_path"
+ echo cmd=$cmd
fi
if [[ $name =~ "mds" ]]; then
- cmd="$BINDIR/cmds -c $conf_file $mon_addr_cmd"
+ cmd="$BINDIR/cmds --conf_file $conf_file $mon_addr_cmd"
fi
if [[ $name =~ "osd" ]]; then
get_conf osd_data "" "osd data" $sections
get_conf osd_journal "" "osd journal" $sections
[ "$osd_journal" != "" ] && osd_journal_cmd="-j $osd_journal" || osd_journal_cmd=""
- cmd="$BINDIR/cosd -c $conf_file \
+ cmd="$BINDIR/cosd --conf_file $conf_file \
$mon_addr_cmd $osd_data $osd_journal_cmd"
fi