Update keepalive.exit.sh.j2
This commit is contained in:
parent
20d9e60f5f
commit
41f7457a0e
@ -93,7 +93,7 @@ while [ true ] ; do
|
||||
#Check other Supernode
|
||||
if [ $mode != "0" ]; then
|
||||
if [ $mode = "1" ]; then
|
||||
nc -zvu $other_SN_DNS 53842
|
||||
/bin/nc -zvu $other_SN_DNS 53842
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ $online = 2 ]; then
|
||||
echo "Supernode wieder online. Backup Modus abgeschaltet" | $slack
|
||||
@ -105,7 +105,7 @@ while [ true ] ; do
|
||||
fi
|
||||
fi
|
||||
# Check this Supernode
|
||||
ping -q -c5 $my_SN_IP -I eth0 > /dev/null
|
||||
/bin/ping -q -c5 $my_SN_IP -I eth0 > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ $online = 0 ]; then
|
||||
echo "Ich bin jetzt Supernode!" | $slack
|
||||
@ -136,7 +136,7 @@ while [ true ] ; do
|
||||
fi
|
||||
done
|
||||
# Check DNS Server
|
||||
host google.de $meship
|
||||
/usr/bin/host google.de $meship
|
||||
if [ "$?" != "0" ]; then
|
||||
service bind9 restart
|
||||
if [ $mode != "0" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user