Thanks, Emery. That makes sense. But after following your instructions
to correct the shebang and create a symlink, nothing happens. I get a
message that liquidsoap.main is starting, without errors, but a ps shows
neither main.liq nor liquidsoap running. /etc/init.d/liquidsoap.main
restart gives a "no such process", followed by a "starting
liquidsoap.main" message.
I can further verify that liquidsoap isn't running because telnet
localhost 1234 doesn't work (it does when I run liquidsoap manually from
compiled sources).
Did I miss something?
On 06/15/12 17:39, Emery Hemingway wrote:
> On Fri, Jun 15, 2012 at 05:06:12PM +0000, Audiodef Online wrote:
>> Hi Emery,
>>
>> I've just successfully emerged liquidsoap on my Gentoo testing server.
>> Since I'm used to compiling it manually, writing scripts from scratch
>> and executing those scripts directly, can you provide more info - and
>> perhaps an example - of how to set up a running stream from the Gentoo
>> installation?
>>
>> Liquidsoap, from the Gentoo ebuild install, informs the user:
>>
>> * You have to create an init script for each stream script:
>> * ln -s liquidsoap /etc/init.d/liquidsoap.<script>
>> * where script refers to /etc/liquidsoap/<script>.liq
>>
>> What I have been doing is running a script, main.liq, from a dir under
>> my regular user account:
>>
>> #!/usr/local/bin/liquidsoap -t
>> set("log.file.path","/home/audiodef/radio/liquidradio.log")
>> set("log.level",4)
>> output.icecast(%vorbis(quality=0.6,samplerate=44100),
>> host="localhost", port=8000,
>> password="(password)", mount="radio.ogg", name="Synthetronica
>> Radio",
>> description="Eclectic Electronica", genre="Electronic",
>> url="synthetronica.com",
>> mksafe(playlist(timeout=3600.,conservative=true,
>> "http://synthetronica.com/radio/main_playlist")))
>>
> I would move the script /etc/liquidsoap/main.liq, then do a
>
> cd /etc/init.d/
> ln -s liquidsoap liquidsoap.main
>
> The initscript /etc/init.d/liquidsoap.main will only read and execute
> /etc/liquidsoap/main.liq. Symlinking a new script is an extra step but
> it allows one initscript per liq script.
>
> Also you may want to change the shebang to #!/usr/bin/liquidsoap.
>
> Emery
--
My music: http://audiodef.com
Synthetronica: http://synthetronica.com
Male survivors of domestic violence: http://abusedmen.org
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users