I forgot to post the control script I created. It's attached below.
Put this into a file in the location of your choice, make the file
executable then you can use it like this:
./shout next
(assuming you named the file "shout").
This makes managing your shoutcast server a little easier.
here's the script:
-----------------------------------
#!/bin/bash
pidscsrv="`pidof sc_serv`"
pidsctrans="`pidof sc_trans_linux`"
case "$1" in
flush)
kill -hup $pidsctrans
;;
next)
kill -winch $pidsctrans
;;
reload)
kill -usr1 $pidsctrans
;;
random)
kill -usr2 $pidsctrans
;;
stop)
kill -term $pidsctrans
kill -9 $pidscsrv
;;
start)
/opt/shoutcast/sc_serv &
/opt/shoutcast/trans/sc_trans_linux
/opt/shoutcast/trans/sc_trans.conf &
pidsctrans="`pidof sc_trans_linux`"
kill -hup $pidsctrans #prevent the console
messages (flush)
;;
esac
--------------------------------
(watch for word wrap. Each of the lines under the start) and before the
"esac" line should be indented. Where it's not, it's word wrap kicking in.)
HTH someone out.
Shawn
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying