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.
Joel
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@xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
-------------- next part --------------
#!/bin/sh
# 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
fi
}
# Stop icecast:
icecast_stop() {
if [ -r /usr/local/share/icecast/icecast.pid ]
kill `cat /usr/local/share/icecast/icecast.pid`
else
echo "No pid file found. Running killall icecast."
echo "It is recommended that you enable the pid file in
icecast.xml"
killall icecast
fi
}
# Restart icecast:
icecast_restart() {
icecast_stop
sleep 1
icecast_start
}
case "$1" in
'start')
icecast_start
;;
'stop')
icecast_stop
;;
'restart')
icecast_restart
;;
*)
echo "usage $0 start|stop|restart"
esac