removed buggy part for killing old processes

This commit is contained in:
ChChBot admin 2017-02-24 17:08:01 +01:00
parent 29cc95f0ad
commit 8941d59dc2
1 changed files with 0 additions and 12 deletions

View File

@ -2,18 +2,6 @@
cd $(dirname $0)
(
PIDS=""
for i in $(ps -awx | grep -i [c]loudbot | sed "s/^\s*//" | cut -d" " -f1); do
if [ $i != $$ ]; then
PIDS="$i $PIDS"
fi
done
if [ ! -z "$PIDS" ]; then
kill $PIDS
sleep 10
kill -9 $PIDS >/dev/null 2>&1
fi
while true
do
sudo -u cloudbot ./cloudbot.py 2>&1 | logger -s -t $(basename $0)