Compare commits

...

2 Commits

3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=hit service
After=network-online.target
[Service]
ExecStart=/opt/shred.ing/sbin/update-title-json.sh
[Install]
WantedBy=multi-user.target

View 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

View 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