For fix thumbs:
Background script initiated, with 30m between runs for cjynas:8089
Using healthcheck.io pings to https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140 to confirm functionality
Background fix_thumbnails process running for cjynas:8089
foreground.sh is exiting for fix_thumbnails with exit code 0
+ dvr=cjynas:8089
++ echo cjynas:8089
++ awk -F: '{print $1}'
+ channelsHost=cjynas
++ echo cjynas:8089
++ awk -F: '{print $2}'
+ channelsPort=8089
+ backgroundScript=fix_thumbnails
+ firstChar=f
+ runInterval=30m
+ healthchecksIO=https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140
+ [[ https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140 == \h\t\t\p\s\:\/\/\h\c\-\p\i\n\g\.\c\o\m\/\y\o\u\r\_\c\u\s\t\o\m\_\u\u\i\d ]]
++ ps -ef
++ grep '[f]ix_thumbnails.* cjynas:8089'
++ awk '{print $2}'
+ runningScriptPID=
+ [[ -n '' ]]
+ backgroundArguments='cjynas:8089 30m https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140'
+ greenIcon='"icons/channels.png"'
+ purpleIcon='"https://community-assets.getchannels.com/original/2X/5/55232547f7e8f243069080b6aec0c71872f0f537.png"'
+ logFile=/config/cjynas-8089_fix_thumbnails_latest.log
+ trap finish EXIT
+ main
+ scriptRun
+ case "$runInterval" in
+ [[ -n '' ]]
+ echo 'Background script initiated, with 30m between runs for cjynas:8089'
+ grep -q '(.*) #fix_thumbnails' /config/config.yaml
+ nohup /config/fix_thumbnails.sh cjynas:8089 30m https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140
+ [[ 1 == \1 ]]
++ date +%d%b%y_%H:%M
+ sed -i '/#fix_thumbnails title/s/#/(18Nov23_08:20) #/' /config/config.yaml
+ sed -i '/#fix_thumbnails icon/s|img src = .* width|img src = "icons/channels.png" width|' /config/config.yaml
+ sed -i '/#fix_thumbnails interval default/s/default: .* #/default: 30m #/' /config/config.yaml
+ [[ -n https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140 ]]
+ echo 'Using healthcheck.io pings to https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140 to confirm functionality'
+ sed -i '/#fix_thumbnails healthchecks default/s|default: .* #|default: https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140 #|' /config/config.yaml
+ echo 'cjynas:8089 fix_thumbnails 30m https://hc-ping.com/33f47a5b-d148-4819-b391-044712cc6140'
+ runningScripts
+ servers=($CHANNELS_DVR $CHANNELS_DVR_ALTERNATES)
+ for server in "${servers[@]}"
++ awk -F: '{print $1}'
++ echo cjynas:8089
+ serverHost=cjynas
++ echo cjynas:8089
++ awk -F: '{print $2}'
+ serverPort=8089
++ ps -ef
++ grep '[f]ix_thumbnails.* cjynas:8089'
++ awk '{print $2}'
+ activeProcess=829
+ [[ -n 829 ]]
+ echo 'Background fix_thumbnails process running for cjynas:8089'
+ exit 0
+ finish
+ echo -e 'foreground.sh is exiting for fix_thumbnails with exit code 0'
+ cp /config/config.yaml /config/temp.yaml
+ cp /config/temp.yaml /config/config.yaml
+ sleep 1
+ '[' -f /config/cjynas-8089_fix_thumbnails_latest.log ']'
+ cat /config/cjynas-8089_fix_thumbnails_latest.log
For Twit:
Background script initiated, with 2h between runs for cjynas:8089
Using healthcheck.io pings to https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b to confirm functionality
Downloading latest iCal data for cjynas:8089...
Background ical_2_xmltv process running for cjynas:8089
foreground.sh is exiting for ical_2_xmltv with exit code 0
++ echo cjynas:8089
++ awk -F: '{print $1}'
+ channelsHost=cjynas
++ echo cjynas:8089
++ awk -F: '{print $2}'
+ channelsPort=8089
+ backgroundScript=ical_2_xmltv
+ firstChar=i
+ runInterval=2h
+ healthchecksIO=https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b
+ [[ https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b == \h\t\t\p\s\:\/\/\h\c\-\p\i\n\g\.\c\o\m\/\y\o\u\r\_\c\u\s\t\o\m\_\u\u\i\d ]]
++ ps -ef
++ grep '[i]cal_2_xmltv.* cjynas:8089'
++ awk '{print $2}'
+ runningScriptPID=
+ [[ -n '' ]]
+ backgroundArguments='cjynas:8089 2h https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b'
+ greenIcon='"icons/channels.png"'
+ purpleIcon='"https://community-assets.getchannels.com/original/2X/5/55232547f7e8f243069080b6aec0c71872f0f537.png"'
+ logFile=/config/cjynas-8089_ical_2_xmltv_latest.log
+ trap finish EXIT
+ main
+ scriptRun
+ case "$runInterval" in
+ [[ -n '' ]]
+ echo 'Background script initiated, with 2h between runs for cjynas:8089'
+ grep -q '(.*) #ical_2_xmltv' /config/config.yaml
+ nohup /config/ical_2_xmltv.sh cjynas:8089 2h https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b
+ [[ 1 == \1 ]]
++ date +%d%b%y_%H:%M
+ sed -i '/#ical_2_xmltv title/s/#/(18Nov23_08:20) #/' /config/config.yaml
+ sed -i '/#ical_2_xmltv icon/s|img src = .* width|img src = "icons/channels.png" width|' /config/config.yaml
+ sed -i '/#ical_2_xmltv interval default/s/default: .* #/default: 2h #/' /config/config.yaml
+ [[ -n https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b ]]
+ echo 'Using healthcheck.io pings to https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b to confirm functionality'
+ sed -i '/#ical_2_xmltv healthchecks default/s|default: .* #|default: https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b #|' /config/config.yaml
+ echo 'cjynas:8089 ical_2_xmltv 2h https://hc-ping.com/af4d7b89-7446-46dc-9d56-52e653f6c34b'
+ runningScripts
+ servers=($CHANNELS_DVR $CHANNELS_DVR_ALTERNATES)
+ for server in "${servers[@]}"
++ echo cjynas:8089
++ awk -F: '{print $1}'
+ serverHost=cjynas
++ awk -F: '{print $2}'
++ echo cjynas:8089
+ serverPort=8089
++ ps -ef
++ grep '[i]cal_2_xmltv.* cjynas:8089'
++ awk '{print $2}'
+ activeProcess=776
+ [[ -n 776 ]]
+ echo 'Background ical_2_xmltv process running for cjynas:8089'
+ exit 0
+ finish
+ echo -e 'foreground.sh is exiting for ical_2_xmltv with exit code 0'
+ cp /config/config.yaml /config/temp.yaml
+ cp /config/temp.yaml /config/config.yaml
+ sleep 1
+ '[' -f /config/cjynas-8089_ical_2_xmltv_latest.log ']'
+ cat /config/cjynas-8089_ical_2_xmltv_latest.log