[Icecast] <on-connect> / <on-disconnect> not working
that.jack.elliott at gmail.com
Fri Jul 15 13:34:42 UTC 2022
Hi Jordan, good idea!
The icecast2 process is owned by user icecast2, not the Owner of the
target scripts. I changed the permissions for the email scripts to rwx
for everyone, but no joy.
Director of Classical Music Programming
KPOV 88.9 FM
High Desert Community Radio
On 7/14/22 22:14, Jordan Erickson wrote:
> Hi Jack,
> Does the user user actually running the Icecast process have access to
> the scripts within the /home/my_username/bin directory? Not sure if
> Icecast is running as $my_username from what you've said here. I'm
> also not sure if Icecast checks access to each script specified in the
> config for access during startup/reload.
> Jordan Erickson
> SubJam, SPC -https://subj.am/
> +1 360.603.5039
> On 7/14/22 08:16, Jack Elliott wrote:
>> 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">
>> 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
>> 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
>> Icecast mailing list
>> Icecast at xiph.org
> Icecast mailing list
> Icecast at xiph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Icecast