<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello Petr,</p>
<br>
<div class="moz-cite-prefix">On 7/14/22 22:10, Petr Pisar wrote:<br>
</div>
<blockquote type="cite"
cite="mid:YtD21OsE8zG+rGqo@album.bayer.uni.cx">
<pre class="moz-quote-pre" wrap="">V Thu, Jul 14, 2022 at 01:17:04PM -0700, Jack Elliott napsal(a):
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Thank you, Petr!
Yes, error.log is not very helpful. With loglevel set to 4 (debug) I
find that the server does claim to run the commands, but there is
nothing to indicate what the problem might be:
[2022-07-14 13:05:13] DBUG source/source_run_script Starting command /home/my_username/bin/email_onconnect.sh
[2022-07-14 13:05:13] DBUG source/source_update_settings disconnect script "/home/my_username/bin/email_ondisconnect.sh"
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">I really recommend using the strace tool to verify the script is successfully
executed.
I suspect that a problem is in your script. E.g. it does not work without
a terminal or with /dev/null connected to standard input and output. Icecast
changes file descriptors for the executed commands.
Does you script work when executed from a shell like this?
/home/my_username/bin/email_onconnect.sh </dev/null >/dev/null 2>/dev/null</pre>
</blockquote>
<p>Yes it does. <br>
</p>
<p>I don't know how to interpret the output of strace. <br>
</p>
<p>Here is what your suggested command gave when I connected to the
mountpoint on the Icecast server, then disconnected from it
(username and target email addresses anonymized):</p>
<pre>$ sudo strace -fq -e execve -p 673
[sudo] password for my_username:
[pid 20973] +++ exited with 0 +++
[pid 20992] +++ exited with 0 +++
[pid 20994] +++ exited with 0 +++
[pid 20993] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20994, si_uid=112, si_status=0, si_utime=0, si_stime=1} ---
[pid 20995] execve("/home/my_username/bin/email_onconnect.sh", ["/home/my_username/bin/email_onconnec"..., "/stream"], [/* 5 vars */]) = 0
[pid 20996] execve("/usr/bin/msmtp", ["msmtp", "my_address@org"], [/* 7 vars */]) = 0
[pid 20996] +++ exited with 78 +++
[pid 20995] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20996, si_uid=112, si_status=78, si_utime=0, si_stime=1} ---
[pid 20995] +++ exited with 78 +++
[pid 20997] +++ exited with 0 +++
[pid 20993] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20997, si_uid=112, si_status=0, si_utime=0, si_stime=1} ---
[pid 20993] +++ exited with 0 +++
[pid 20998] execve("/home/my_username/bin/email_ondisconnect.sh", ["/home/my_username/bin/email_ondiscon"..., "/stream"], [/* 5 vars */]) = 0
[pid 20999] execve("/usr/bin/msmtp", ["msmtp", "my_address@org"], [/* 7 vars */]) = 0
[pid 20999] +++ exited with 78 +++
[pid 20998] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20999, si_uid=112, si_status=78, si_utime=0, si_stime=1} ---
[pid 20998] +++ exited with 78 +++
[pid 21000] +++ exited with 0 +++
</pre>
<p>This thread is getting a little messy.</p>
<p>Thank you for looking at this!<br>
</p>
<blockquote type="cite"
cite="mid:YtD21OsE8zG+rGqo@album.bayer.uni.cx">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">This with Icecast 2.4.0 -- I am waiting for some help with a question I
have posted in this mailing list to confirm I have the right repo
selected before I attempt upgrading Icecast. It is a running,
in-operation service for our radio station and I don't want to break
anything.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">While Icecast developers have a good relationship with Debian, I would recommend
you to contact vendor of the repository in question. Icecast developers cannot
be responsible for packaging Icecast by someone else.
-- Petr
</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>
</body>
</html>