get_local_daemon_list "mon"
get_local_daemon_list "osd"
get_local_daemon_list "mds"
+ get_local_daemon_list "mgr"
}
get_name_list() {
orig="$*"
- # extract list of monitors, mdss, osds defined in startup.conf
+ # extract list of monitors, mdss, osds, mgrs defined in startup.conf
allconf="$local "`$CCONF -c $conf -l mon | egrep -v '^mon$' || true ; \
$CCONF -c $conf -l mds | egrep -v '^mds$' || true ; \
+ $CCONF -c $conf -l mgr | egrep -v '^mgr$' || true ; \
$CCONF -c $conf -l osd | egrep -v '^osd$' || true`
if [ -z "$orig" ]; then
type=`echo $f | cut -c 1-3` # e.g. 'mon', if $item is 'mon1'
id=`echo $f | cut -c 4- | sed 's/\\.//'`
case $f in
- mon | osd | mds)
+ mon | osd | mds | mgr)
for d in $allconf; do
if echo $d | grep -q ^$type; then
what="$what $d"