prepare for T-Pot 16.03

This commit is contained in:
marco
2015-12-08 15:47:39 +01:00
parent 0701b5f2f4
commit f06935fe63
72 changed files with 29029 additions and 459 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash
########################################################
# T-Pot Community Edition #
# T-Pot #
# Check container and services script #
# #
# v0.14 by mo, DTAG, 2015-08-07 #
# v0.02 by mo, DTAG, 2015-08-08 #
########################################################
if [ -a /var/run/check.lock ];
then exit

View File

@ -1,15 +1,33 @@
#!/bin/bash
########################################################
# T-Pot Community Edition #
# T-Pot #
# Container and services restart script #
# #
# v0.14 by mo, DTAG, 2015-08-07 #
# v0.03 by mo, DTAG, 2015-11-02 #
########################################################
myCOUNT=1
if [ -a /var/run/check.lock ];
then exit
fi
while true
do
if ! [ -a /var/run/check.lock ];
then break
fi
sleep 0.1
if [ "$myCOUNT" = "1" ];
then
echo -n "Waiting for services "
else echo -n .
fi
if [ "$myCOUNT" = "6000" ];
then
echo
echo "Overriding check.lock"
rm /var/run/check.lock
break
fi
myCOUNT=$[$myCOUNT +1]
done
myIMAGES=$(cat /data/images.conf)

View File

@ -1,10 +1,10 @@
#!/bin/bash
########################################################
# T-Pot Community Edition #
# T-Pot #
# Container and services status script #
# #
# v0.11 by mo, DTAG, 2015-06-12 #
# v0.04 by mo, DTAG, 2015-08-20 #
########################################################
myCOUNT=1
myIMAGES=$(cat /data/images.conf)
@ -29,12 +29,13 @@ do
done
echo
echo
echo "****************** $(date) ******************"
echo
echo "======| System |======"
echo Date:" "$(date)
echo Uptime:" "$(uptime)
echo CPU temp: $(sensors | grep "Physical" | awk '{ print $4 }')
echo
for i in $myIMAGES
do
echo
echo "======| Container:" $i "|======"
docker exec $i supervisorctl status | GREP_COLORS='mt=01;32' egrep --color=always "(RUNNING)|$" | GREP_COLORS='mt=01;31' egrep --color=always "(STOPPED|FATAL)|$"
echo