[Icecast] How to killsource from command line?

David Saunders abitar.com at gmail.com
Mon Nov 10 00:53:20 UTC 2008


I use the command thru curl( since i set up http links in php using curl)
http://{adminname}:{adminpass}@{server}:8000/admin/killsource.xsl?mount={mountname}

and it will work, but if the source client is set up for reconnect its
possible it will be back before you can verify it gone, just look at
stream_start to see if it was changed :) THe source clients we use for
most of our streams reconnect soon as they loose connection then if
they cant it goes into a countdown to try again.

Since i use fedora I use the init.d command to reload after i updated
the icecast.xml with a new password.  Then i kick the source. Using
the above command.
David


On Sun, Nov 2, 2008 at 4:44 PM,  <chiapas at aktivix.org> wrote:
> Hi
>
> Many thanks for the helpful replies.
>
> Please see below.
>
> 2008/11/1 David Saunders <abitar.com at gmail.com>:
>> They should work :P
>>
>> but if it the local server  try using 127.0.0.1 for the server name
>> instead, lot of server are not configure correctly to know what their
>> address is.
>>
>> also the syntax  user:Pass at servername    should work also.
>
> Doesn't yet work for me.
>
> I've tried this from the CLI and it just returns me to a cursor thus:
>
> [root at example ~]# lynx -auth user:password
> http://127.0.0.1:8000/admin/killsource.xsl?mount=/example.mp3
>>
>
> Same using curl and wget, for example:
>
> [root at example ~]# curl
> http://user:password@127.0.0.1:8000/admin/killsource.xsl?mount=/example.mp3
>>
>
>> I use it allot on a remote control server to force a client to drop.
>> But one thing you have to make sure is that they not on reconnect in
>> the client or it will reconnect with in a few seconds.
>
> Good point.
>
>> Also I would add their source IP into the firewall setting for a
>> temporary ban to the server.  . but that is a totally different.
>
> Yes, I am having success with iptables - I have effectively solved my
> problem this way but for curiosity's sake I am interested in using
> lynx/curl/wget.
>
>> Also i work with one where i would update the server with a new
>> username/password fot the mount and reload the server (not reset the
>> server) then kick them , this will keep them from getting back on.
>
> Good point but I'm trying to avoid restarting Icecast and dropping all
> other active connections - and I presume "killall -HUP icecast" will
> _not_ drop the unwanted mountpoint.
>
>> David
>
> Many thanks
>
> Chip Scooter
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
>



More information about the Icecast mailing list