<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Jack,<br>
<br>
You said:<br>
<br>
---<br>
Okay now that I am user icecast2, let me see if the script I want
the Icecast server to run <on-connect> runs, so . . . <br>
<pre>icecast2@icecast-Pi: $ ./email_onconnect.sh</pre>
<p>and the prompt returns immediately, no error message, but no
email received. But if I su back to my_username and try the
script, it runs and an email is received. <br>
</p>
---<br>
<br>
This tells me that your script is not doing what it needs to do as
the Icecast user. Since you're doing it outside of Icecast, it's not
the <on-connect> or <on-disconnect> triggers that are
failing. It would be helpful if you could paste your script
(sensitive info like passwords removed) here.<br>
<br>
<br>
Cheers,<br>
Jordan<br>
<pre class="moz-signature" cols="72"><a class="moz-txt-link-freetext" href="https://subj.am/">https://subj.am/</a>
</pre>
<div class="moz-cite-prefix">On 9/17/23 07:08, Jack Elliott wrote:<br>
</div>
<blockquote type="cite"
cite="mid:68d4dadd-108f-933a-fad2-8b14e30772d7@kpov.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi, I posted yesterday that I was following this thread, and a
nice listmember offered some suggestions to debug it. I replied
directly to him, taking the thread off the list. This was not my
intention, I'm bringing it back to the list to seek additional
help because this issue has not been resolved. <br>
</p>
<p>So, summary:</p>
<p>The OS is Linux. <br>
</p>
<p>Issue: <on-connect> / <on-disconnect> does not
launch a bash script that sends notification emails. <br>
</p>
<p>The script is located in /home/my_username/bin</p>
<p>The script runs from command line and sends the email with me
as user. So the script is coded right. But icecast does not
launch the script. </p>
<p>I have given rwx permission to everyone from / down to and
including the script itself for debugging. <br>
</p>
<p>Here is the code I have in the mount definition in icecast.xml:<br>
</p>
<pre> <on-connect>/home/my_username/bin/email_onconnect.sh</on-connect>
<on-disconnect>/home/my_username/bin/email_ondisconnect.sh</on-disconnect>
</pre>
<p>It is intended to run when a remote source client connects. The
mountpoint works fine, our remote hosts routinely use it to
stream their radio shows to the station to be put on the air. <br>
</p>
<p>So. Is it possible that by having a fallback-mount (a local
mp3) in the mountpoint "blocks" <on-connect>? IOW, because
there is always a source client connected—either the fallback or
a remote source client—that there is no connecting event to
trigger the command? </p>
<p>Thank you!<br>
</p>
<pre class="moz-signature" cols="72">--
Jack Elliott
Director of Classical Music Programming
High Desert Community Radio
KPOV Bend, Oregon</pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Icecast mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
</blockquote>
<br>
</body>
</html>