From 2204bd5d9eaa98f545a6d65024ef2798b93db4bf Mon Sep 17 00:00:00 2001 From: fspitzba Date: Tue, 13 Oct 2020 20:09:33 +0200 Subject: [PATCH] [DELETE] deleted watchdog, it is not longer needed --- telebot_watchdog | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 telebot_watchdog diff --git a/telebot_watchdog b/telebot_watchdog deleted file mode 100644 index a279335..0000000 --- a/telebot_watchdog +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# zaehle die Prozesse, die den Bot ausfuehren -count=$(ps aux | grep HSMensaW_bot.py | grep -c -v grep) -# mehr als einer? -if [ "$count" -gt 1 ]; then - # beende alle - kill `ps axo pid,command | grep HSMensaW | grep -v grep | sed -e 's/^[[:space:]]*//' | cut -d ' ' -f1 | tr '\n' ' '` -fi - -# ungleich 1 (wenn mehr, wurden sie schon beendet, daher keiner) -if [ "$count" -ne 1 ]; then - # starte neu - cd /home/pi/scripts || exit - python3 HSMensaW_bot.py & -fi -