Hi all,

I updated my script today to change my fallback from a single to a
playlist and to add the playlist reload param. After doing this, my
script dies after a while - less than an hour. I didn't keep track of
the exact time the script ran, so I'm not sure exactly how long it
lasted. This happens every time I start up my script anew. Also, after I
made this edit, the init script seems to have trouble stopping my script.

Before I made those changes, my script ran continuously without a hitch,
and /etc/init.d/liquidsoap restart worked. So I must have done something
wrong, and I'm hoping someone can point out to me what it is.

I changed my script from this:

----------------------------

#!/usr/local/bin/liquidsoap
set("log.file.path","/usr/local/etc/liquidsoap/liquidradio.log")
set("log.level",4)
set("scheduler.generic_queues",4)
playlist = playlist(timeout=3600., conservative=true, length=400.)
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
    host = "localhost",
    port = 8000, password = "(password)", mount = "trance.ogg",
    description="Synthetronica Radio: Trance", genre="Trance",
    url="http://audiodef:8000/trance.ogg";, name="Trance",
    fallback([normalize(playlist("/usr/local/etc/liquidsoap/trance.m3u")),
    single("/var/www/audiodef/htdocs/audio/dc3.ogg")]))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
host = "localhost",
    port = 8000, password = "(password)", mount = "ambient.ogg",
    description="Synthetronica Radio: Ambient", genre="Ambient",
    url="http://audiodef:8000/ambient.ogg";, name="Ambient",
       
fallback([normalize(playlist("/usr/local/etc/liquidsoap/ambient.m3u")),
        single("/var/www/audiodef/htdocs/audio/dc3.ogg")]))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
host = "localhost",
    port = 8000, password = "(password)", mount = "downtempo.ogg",
    description="Synthetronica Radio: Downtempo", genre="Downtempo",
    url="http://audiodef:8000/downtempo.ogg";, name="Downtempo",
       
fallback([normalize(playlist("/usr/local/etc/liquidsoap/downtempo.m3u")),
        single("/var/www/audiodef/htdocs/audio/dc3.ogg")]))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
host = "localhost",
    port = 8000, password = "(password)", mount = "techno.ogg",
        description="Synthetronica Radio: Techno", genre="Techno",
        url="http://audiodef:8000/techno.ogg";, name="Techno",
       
fallback([normalize(playlist("/usr/local/etc/liquidsoap/techno.m3u")),
        single("/var/www/audiodef/htdocs/audio/dc3.ogg")]))

----------------------

To this:

-------------------------------

#!/usr/local/bin/liquidsoap

set("log.file.path","/usr/local/etc/liquidsoap/liquidradio.log")
set("log.level",4)
set("scheduler.generic_queues",4)

playlist = playlist(timeout=3600., conservative=true, length=600.,
    reload=1, reload_mode="rounds", mode="randomize")

output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
    host = "localhost",
    port = 8000, password = "(password)", mount = "trance.ogg",
    description="Synthetronica Radio: Trance", genre="Trance",
    url="http://audiodef:8000/trance.ogg";, name="Trance",
    fallback([normalize(playlist("/usr/local/etc/liquidsoap/trance.m3u")),
    playlist.safe("/usr/local/etc/liquidsoap/safelist.m3u")]))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
host = "localhost",
    port = 8000, password = "(password)", mount = "ambient.ogg",
    description="Synthetronica Radio: Ambient", genre="Ambient",
    url="http://audiodef:8000/ambient.ogg";, name="Ambient",
       
fallback([normalize(playlist("/usr/local/etc/liquidsoap/ambient.m3u")),
        playlist.safe("/usr/local/etc/liquidsoap/safelist.m3u")]))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
host = "localhost",
    port = 8000, password = "(password)", mount = "downtempo.ogg",
    description="Synthetronica Radio: Downtempo", genre="Downtempo",
    url="http://audiodef:8000/downtempo.ogg";, name="Downtempo",
       
fallback([normalize(playlist("/usr/local/etc/liquidsoap/downtempo.m3u")),
        playlist.safe("/usr/local/etc/liquidsoap/safelist.m3u")]))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=128),
host = "localhost",
    port = 8000, password = "(password)", mount = "techno.ogg",
        description="Synthetronica Radio: Techno", genre="Techno",
        url="http://audiodef:8000/techno.ogg";, name="Techno",
       
fallback([normalize(playlist("/usr/local/etc/liquidsoap/techno.m3u")),
        playlist.safe("/usr/local/etc/liquidsoap/safelist.m3u")]))

Thanks!
Damien

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to