#!/bin/sh
# Запуск backbone's share
for hub in dc.piring-net.net dc1.piring-net.net dc2.piring-net.net portal.piring-net.net; do
	if [ "`ps -U kolan -u kolan u|grep microdc2|grep $hub`" != "" ]; then
		echo "Хаб $hub уже подключен"
	else
		echo "Подключаем хаб $hub"
		(microdc2 -c config-$hub &>/dev/null)&
	fi
done
