Koozali.org: home of the SME Server

Shoutcast (did the code change?)

Offline cbacani

  • *
  • 111
  • +0/-0
Shoutcast (did the code change?)
« on: February 21, 2012, 01:31:18 AM »
Hey William are you out there?  I had a server failure and the system went down. Tried to use my install script ( see below ) and I cannot talk to the SME server. Port 8000 and 8001 are closed. did the code change?

Code: [Select]
Installing Shoutcast on the SME server as follows.

mkdir -p /opt/shoutcast

cd /opt/shoutcast

wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_07_31_2011.tar.gz

tar -zxvf sc_serv2_linux_07_31_2011.tar.gz

mkdir -p /var/service/shoutcast
mkdir -p /var/service/shoutcast/log

cd /var/service/shoutcast

pico -w run  (SEE NOTE #1)

cd log

pico -w run   (SEE NOTE #2)

touch /var/service/shoutcast/down

mkdir -p /var/log/shoutcast

config set shoutcast service access public status enabled TCPPorts 8000:8001

ln -s /var/service/shoutcast /service/shoutcast
ln -s /etc/rc.d/init.d/daemontools /etc/rc.d/init.d/supervise/shoutcast
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S92shoutcast

chmod 755 /var/service/shoutcast/run
chmod 755 /var/service/shoutcast/log/run
chown smelog:smelog /var/log/shoutcast

/sbin/e-smith/signal-event console-save
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

++++++++++++++++++++++++++++++++++++++++++++++++++++

ln -s /etc/rc.d/init.d/shoutcast S92shoutcast

cd /opt/shoutcast
pico sc_serv_basic.conf to set password and other options.

NOTICE: You have to reboot the server in order for the
new password to take effect.

password = aerivaerva;ore09
admin pages = woeicwievn398

NOTE #1 Place the 3 lines of code below into run #1
-------------------------------------

#!/bin/sh
 exec 2>&1
 exec /opt/shoutcast/sc_serv /opt/shoutcast/sc_serv.conf


NOTE #2 Place the 5 lines of code below into run #2
-------------------------------------
#!/bin/sh
exec                                    \
    /usr/local/bin/setuidgid smelog     \
    /usr/local/bin/multilog t s5000000  \
    /var/log/shoutcast

----------------------------------------------------------------
On Your Webpage

On your webpage add something like this
<p>&nbsp;<a href="http://your ip address:8000/listen.pls" title="Listen Live"><br />LISTEN LIVE</a></p>


Running version 7.51 SME

Carl

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Shoutcast (did the code change?)
« Reply #1 on: February 21, 2012, 04:20:45 AM »
Moving to General Discussions, this appears to be the best fit.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Shoutcast (did the code change?)
« Reply #2 on: February 21, 2012, 01:34:40 PM »
Take a look at /etc/rc.d/init.d/masq to see what rules were generated for ports 8000 and 8001.

Run netstat -an |grep 800 to make sure something is 'listening' on port 8000 and 8001.  You should get a result something like this:
tcp        0      0 0.0.0.0:8000                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:8001                0.0.0.0:*                   LISTEN



Offline cbacani

  • *
  • 111
  • +0/-0
Re: Shoutcast (did the code change?)
« Reply #3 on: February 21, 2012, 08:36:18 PM »
It looks like nothing is listening at port 8000 or 8001. Glib seems to have gone missing and yet upon startup it says shoutcast is running and ok. Something changed.


Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Shoutcast (did the code change?)
« Reply #4 on: March 06, 2012, 03:37:44 AM »
This is because in the how-to you mentioned:
Code: [Select]
exec /opt/shoutcast/sc_serv /opt/shoutcast/sc_serv.conf
But you didn't configure this file, instead you used sc_serv_basic.conf

You can copy it:
cp sc_serv_basic.conf sc_serv.conf

then restart the server.

Best,