FINALLY ABILITY TO WRITE PID

This commit is contained in:
lulzette 2021-04-24 10:29:39 +03:00
parent 4d2d7f6a0a
commit 14ca31bfcf

View File

@ -15,7 +15,7 @@ source $full_path/config_list.sh
#if pid exists and stream is live, than exit and do not start recording #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 [ -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 #exit if no stream and remove lock
$full_path/lifeChk.py $1 $twitchid || rm $storage_path/$1/pid || exit 0 $full_path/lifeChk.py $1 $twitchid || rm $storage_path/$1/pid || exit 0