dev/bash/scripts/dcconnect.sh

11 lines
351 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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