down: /service/shoutcast: 1s, want up; run: log: (pid 1840) 4495s
Installing Shoutcast on the SME server as follows.
mkdir -p /opt/shoutcast
cd /opt/shoutcast
wget
ftp://ftp.tw.freebsd.org/pub/ports/distfiles/sc_serv_1.9.8_Linux.tar.gztar -zxvf sc_serv_1.9.8_Linux.tar.gz
mkdir -p /var/service/shoutcast
mkdir -p /var/service/shoutcast/log
cd /var/service/shoutcast
nano -w run (SEE NOTE #1)
cd log
nano -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
signal-event remoteaccess-update
verify the change with : /etc/init.d/masq restart
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
NOTE: The system will go down for a reboot *****************************
ln -s /etc/rc.d/init.d/shoutcast S92shoutcast
cd /opt/shoutcast
nano sc_serv.conf to set password and other options.
Password=XXXXXXX (replace XXXX with your password)
NOTICE: You have to reboot the server in order for the
new password to take effect.
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_basic.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
---------------------------------------