[Icecast] Exit Icecast

Joel Ebel jbebel at ncsu.edu
Tue Jan 11 06:58:27 PST 2005

Just kill it.  You can either run killall icecast, or you can find the 
pid of icecast and kill it specifically.  ps can help you find it, but a 
better way would be to use a pid file which you can enable in the 
icecast configuration, and use it to kill icecast with something like this:

kill `cat /usr/local/share/icecast/icecast.pid`

I use the attached script to start, stop, and restart icecast.  It might 
take some modifications to work with SuSE though.  I've used it with 
Slackware and Debian.


stefan himpelmaier wrote:
> Hi
> I`m using Icecast 2.2(on Suse 9.0) and will working fine but
> how do i exit Icecast ???
> Greets Chris
> ___________________________________________________________________________
> Sagen Sie nicht, wir hätten Sie nicht gewarnt!
> http://my-mail.ch/?redirect=9901
> So macht schenken richtig Freude! Schenken und Helfen mit World Vision!
> http://www.my-mail.ch/?redirect=1958
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
-------------- next part --------------
# Start/stop/restart icecast.

# Start icecast:
icecast_start() {
  if [ -x /usr/local/bin/icecast -a -r /usr/local/etc/icecast.xml ]; then
    echo "Starting Icecast:  /usr/local/bin/icecast -c /usr/local/etc/icecast.xml -b"
    /usr/local/bin/icecast -c /usr/local/etc/icecast.xml -b > /dev/null

# Stop icecast:
icecast_stop() {
  if [ -r /usr/local/share/icecast/icecast.pid ]
    kill `cat /usr/local/share/icecast/icecast.pid`
    echo "No pid file found.  Running killall icecast."
    echo "It is recommended that you enable the pid file in icecast.xml"
    killall icecast

# Restart icecast:
icecast_restart() {
  sleep 1

case "$1" in
  echo "usage $0 start|stop|restart"

More information about the Icecast mailing list