From 14ca31bfcf2119826f700e352c020dbb20a0f485 Mon Sep 17 00:00:00 2001 From: lulzette Date: Sat, 24 Apr 2021 10:29:39 +0300 Subject: [PATCH] FINALLY ABILITY TO WRITE PID --- check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.sh b/check.sh index 8272881..d5d1daf 100755 --- a/check.sh +++ b/check.sh @@ -15,7 +15,7 @@ source $full_path/config_list.sh #if pid exists and stream is live, than exit and do not start recording [ -f $storage_path/$1/pid ] && $full_path/lifeChk.py $1 $twitchid && exit 0 -touch $storage_path/$1/pid +echo $$ > $storage_path/$1/pid #exit if no stream and remove lock $full_path/lifeChk.py $1 $twitchid || rm $storage_path/$1/pid || exit 0