I tryied the shutdown it stopped the application but didn't killed the
proccess, maybe something to do with permissions.

In the playlist issue
I hava the following logic:
 There is a playlist file with the songs (pls)1
 I change this file.
 I reload the stream to output from the new songs from the playlist, but it
didn't worked.

I made a function to be called to reload the playlist but it didn't worked
also
My code is the following
.........
outp=output.icecast(%vorbis, description="Desc", host="10.0.0.11",
port=8000, password="MYPASSS", mount="phpTest.ogg", restart=true,
restart_delay=5, id="phpTest");
a=mksafe(playlist("/home/fabio/Desktop/play.pls"));
src=switch([({true},a)]);#This switch will have an use later,now it's
useless
...........

def add_reloadPlayList(s,o)
    def reloadPlayList(str)
        source.shutdown(outp);
        m=mksafe(playlist("/home/fabio/Desktop/play.pls"));
        t=switch([({true},m)]);   #This switch will have an use later,now
it's useless
        outp(t)
        "ok!"
    end

server.register(namespace="ns",usage="reloadPlayList",description="reload
the playlists","reloadPlayList",reloadPlayList);
    end
add_reloadPlayList()
outp(src)


Em 8 de setembro de 2011 21:54, Fábio Costa <[email protected]>escreveu:

> Thanks David.
> The shutdown will sure help me a lot.
> i will figure out a way to solve my needs and post the result and the
> context of the problem as soon as i finish it.
>
>
> Em 8 de setembro de 2011 19:01, David Baelde <[email protected]>escreveu:
>
> Hi Fabio,
>>
>> I'll reply quickly with some pointers that you can lookup in the doc...
>>
>> For the socket instead of telnet, it's the server.socket setting
>> (you'll probably find it useful to browse through the settings page on
>> the web, or liquidsoap --conf-descr, particularly the "server"
>> section).
>>
>> 2011/9/8 Fábio Costa <[email protected]>:
>> > I have a basic issue that i don't think deserves a thread.
>> > -Is there a clean way to kill a liquidsoap daemon proccess in the code
>> > itself?
>>
>> Yes: shutdown()
>>
>> > -And how to stop and make an active source play another source
>> dynamically
>> > (i.e by a external command)?
>>
>> No simple answer, it could be as simple as a switch (perhaps with a
>> switching predicate controlled from outside, as I described a few days
>> ago on the list) or as complex (and potentially hard to use) as
>> source.dynamic(). Also possible related:
>> http://savonet.sourceforge.net/doc-svn/dynamic_sources.html but it's
>> also quite advanced, so avoid if possible.
>>
>> Cheers,
>> --
>> David
>>
>
>
------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to