Created
February 23, 2018 07:49
-
-
Save mekya/1115f316bdc66ae077d247d9542c1b15 to your computer and use it in GitHub Desktop.
Check m3u8 files updated regularly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $diff -gt $timeout ] | |
then | |
echo "Restarting channel $channelNo" >> /var/log/channel_control | |
sudo service channel_$channelNo stop | |
sleep 2 | |
sudo service channel_$channelNo start | |
else | |
echo "Channel $channelNo running properly, last update time $diff seconds ago" >> /var/log/channel_control | |
fi | |
} | |
for number in {1..15} | |
do | |
check_channel $number | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment