dev/bash/scripts/dcconnect.sh

11 lines
351 B
Bash
Raw Normal View History

2011-04-07 14:30:45 +04:00
#!/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