<p dir="ltr">Hello Phil,</p>
<p dir="ltr">Just to confirm, are you sure the scripts' path in config file is relative to the chroot directory?</p>
<p dir="ltr">When you chroot an executable, you are changing the root directory to the configured path, so you have to account for that in the config file.</p>
<div class="gmail_quote">El 01/08/2013 23:05, "Phil - w2lie" <<a href="mailto:w2lie@w2lie.net">w2lie@w2lie.net</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
After all the discussion last week, I finally decided to put my own<br>
connect / disconnect scripts in on my server, as well as make some<br>
changes to the house keeping.<br>
<br>
I'm now running my icecast server under chown, and as a user (instead of<br>
nobody).    Chown and the user seem to be functioning fine.<br>
<br>
But, for some reason, Icecast cannot find my connect & disconnect<br>
scripts, even though the exist.  They are .sh scripts and have 755<br>
permissions.   Running the scripts directly from shell work fine.   But<br>
Icecast will always spit out an error that it can't find the connect or<br>
disconnect script.   I've even put the scripts in the chown root, but no<br>
luck there either.<br>
<br>
Can someone help me figure out why icecast can't find my scripts?<br>
<br>
SSH:<br>
root@xx [/home/<user>]# icecast -c /home/<user>/icecast/<config>.xml<br>
Changed root successfully to "/home/<user>/icecast".<br>
Changed groupid to 5##.<br>
Changed userid to 5##.<br>
<br>
error.log:<br>
<br>
[2013-08-01  20:51:10] WARN main/main YP server handling has been disabled<br>
[2013-08-01  20:51:16] EROR source/source_run_script Unable to run<br>
command connect.sh (No such file or directory)<br>
[2013-08-01  20:51:21] EROR source/source_run_script Unable to run<br>
command disconnect (No such file or directory)<br>
<br>
<br>
<br>
Thanks for the help<br>
<br>
Phil<br>
<br>
By The way, I've extended the bash file to include different e-mail<br>
addresses for different feeds.<br>
<br>
#!/bin/bash<br>
#<br>
# W2LIE Icecast Connect / Disconnect Parameters File<br>
# Use for notification system<br>
#<br>
# Rev .01<br>
#<br>
#<br>
<br>
#Set the date and Time<br>
date="$(date '+%B %d,%Y')"<br>
time="$(date +%H%M)"<br>
<br>
<br>
# Set the Connect and Disconnect Subject Lines<br>
SUBJECT="Stream $1 connected"<br>
<br>
<br>
# Set our Delivery E-mail Addresses per feed<br>
if [[ $1 == "<feed a>" ]] || [[ $1 == "<feed b>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed c>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed d>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed e>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed f>" ]]; then<br>
     email="email@address.tld email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed g>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed h>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
elif [[ $1 == "<feed i>" ]] || [[ $1 == "<feed j>" ]]; then<br>
     email="email@address.tld email@address.tld"<br>
<br>
else email="email@address.tld"<br>
fi<br>
<br>
# Set the Connect and Disconnect Messages<br>
echo -e "Hello,\nThis is an automatic notification from W2LIE.net.\nThe<br>
${1} Live Scanner Feed has connected to the server on ${date} at<br>
${time}hrs.\n\nThank you,\nPhil / w2lie" ><br>
/home/<user>/icecast/scripts/${1}_connect.txt<br>
<br>
# send an email using /bin/mail<br>
/bin/mail -s "${SUBJECT}" ${email} <<br>
/home/<user>/icecast/scripts/${1}_connect.txt<br>
<br>
#EOF<br>
<br>
<br>
_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
</blockquote></div>