Soll ich es so machen?
So starten die Server aber ob er die Kerne so benutzt werden, ist wieder eine andere Frage, da bei taskset -c nicht mycpu steht?
Code
else
if [ "$VAR_G" != "" ]; then
if [ "$VAR_G" == "1" ]; then
mycpu="2,3";
fi
if [ "$VAR_G" == "2" ]; then
mycpu="4";
fi
if [ "$VAR_G" == "3" ]; then
mycpu="5,6";
fi
if [ "$VAR_G" == "4" ]; then
mycpu="7";
fi
if [ "$VAR_G" == "5" ]; then
mycpu="8,9";
fi
if [ "$VAR_G" == "6" ]; then
mycpu="10";
fi
if [ "$VAR_G" == "7" ]; then
mycpu="11,12";
fi
if [ "$VAR_G" == "8" ]; then
mycpu="13";
fi
if [ "$VAR_G" == "9" ]; then
mycpu="14,15";
fi
if [ "$VAR_G" == "10" ]; then
mycpu="16";
fi
screen -A -m -d -L -S server$VAR_C-X taskset -c $VAR_G $VAR_F
else
screen -A -m -d -L -S server$VAR_C-X $VAR_F
fi
check=`ps aux | grep -v grep | grep -i screen | grep -i "server$VAR_C-X"`
fi
Alles anzeigen
-------------
So startet der Server nicht!
Code
else
if [ "$VAR_G" == "1" ]; then
mycpu="2,3";
if [ "$VAR_G" == "2" ]; then
mycpu="4";
if [ "$VAR_G" == "3" ]; then
mycpu="5,6";
if [ "$VAR_G" == "4" ]; then
mycpu="7";
if [ "$VAR_G" == "5" ]; then
mycpu="8,9";
if [ "$VAR_G" == "6" ]; then
mycpu="10";
if [ "$VAR_G" == "7" ]; then
mycpu="11,12";
if [ "$VAR_G" == "8" ]; then
mycpu="13";
if [ "$VAR_G" == "9" ]; then
mycpu="14,15";
if [ "$VAR_G" == "10" ]; then
mycpu="16";
screen -A -m -d -L -S server$VAR_C-X taskset -c $VAR_G $VAR_F
else
screen -A -m -d -L -S server$VAR_C-X $VAR_F
fi
check=`ps aux | grep -v grep | grep -i screen | grep -i "server$VAR_C-X"`
fi
Alles anzeigen
auch nicht so.
Code
else
if [ "$VAR_G" == "1" ]; then
mycpu="2,3";
if [ "$VAR_G" == "2" ]; then
mycpu="4";
if [ "$VAR_G" == "3" ]; then
mycpu="5,6";
if [ "$VAR_G" == "4" ]; then
mycpu="7";
if [ "$VAR_G" == "5" ]; then
mycpu="8,9";
if [ "$VAR_G" == "6" ]; then
mycpu="10";
if [ "$VAR_G" == "7" ]; then
mycpu="11,12";
if [ "$VAR_G" == "8" ]; then
mycpu="13";
if [ "$VAR_G" == "9" ]; then
mycpu="14,15";
if [ "$VAR_G" == "10" ]; then
mycpu="16";
screen -A -m -d -L -S server$VAR_C-X taskset -c $VAR_G $VAR_F
else
screen -A -m -d -L -S server$VAR_C-X $VAR_F
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi
check=`ps aux | grep -v grep | grep -i screen | grep -i "server$VAR_C-X"`
fi
Alles anzeigen