[Icecast] <on-connect> / <on-disconnect> not working
Jack Elliott
that.jack.elliott at gmail.com
Thu Jul 14 15:16:03 UTC 2022
Hi,
Icecast server 2.4.0 running on Linux.
I have a couple of shell scripts that send emails on connect and on
disconnect. From the command line they work, but when called from
icecast they do not.
Here is the mount section of my icecast.xml:
<mount type="normal">
<mount-name>/my_stream</mount-name>
<fallback-mount>/fallbacks/my_fallback.mp3</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
*<on-connect>/home/my_username/bin/email_onconnect.sh</on-connect>**
**<on-disconnect>/home/my_username/bin/email_ondisconnect.sh</on-disconnect>*
<no-yp>1</no-yp>
</mount>
After putting the new <on-connect> and <on-disconnect> entries into
icecast.xml I reloaded the config with /etc/init.d/icecast2 reload and
there was no error written to /var/log/icecast2/error.log
<on-connect> calls /home/my_username/bin/email_onconnect.sh which works
from the command line. Likewise, <on-disconnect> calls a similar script
which also works from the command line. I've tested them.
The permissions for the two scripts:
-rwxr-xr-x 1 my_username my_username 352 Jul 14 07:49 email_onconnect.sh
-rwxr-xr-x 1 my_username my_username 375 Jul 14 07:49 email_ondisconnect.sh
I'd like to get these functions working . . . ideas?
Thank you!
--
Jack Elliott
Director of Classical Music Programming
KPOV 88.9 FM
High Desert Community Radio
Bend, OR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20220714/62b28a43/attachment.htm>
More information about the Icecast
mailing list