more scripting to get track title title as a static file
This commit is contained in:
parent
04fb833d77
commit
79af7bfae7
2 changed files with 13 additions and 0 deletions
5
icecast-title-service/update-title-json.sh
Normal file
5
icecast-title-service/update-title-json.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/sh
|
||||||
|
while true ; do
|
||||||
|
su shred-batch -c '/opt/shred.ing/sbin/icecast-track-title-to-javascript.sh > /opt/shred.ing/js/title.json' ;
|
||||||
|
sleep 17
|
||||||
|
done
|
||||||
8
icecast-title-service/update-title-monitor.sh
Normal file
8
icecast-title-service/update-title-monitor.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/sh
|
||||||
|
while true ; do
|
||||||
|
ls -l /opt/shred.ing/js/title.json;
|
||||||
|
#ps -f 75362;
|
||||||
|
systemctl status icecast-title.service
|
||||||
|
cat /opt/shred.ing/js/title.json;
|
||||||
|
sleep 10;
|
||||||
|
done
|
||||||
Loading…
Add table
Add a link
Reference in a new issue