Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: cbacani 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?
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> <a href="http://your ip address:8000/listen.pls" title="Listen Live"><br />LISTEN LIVE</a></p>
Running version 7.51 SME
Carl
-
Moving to General Discussions, this appears to be the best fit.
-
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
-
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.
-
This is because in the how-to you mentioned:
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,