[Freeswitch-dev] only one freeswitch at a time (using the same log directory, at least)

Trixter aka Bret McDanel trixter at 0xdecafbad.com
Wed Feb 21 15:57:38 EST 2007


On 2/21/07, David Nicol <davidnicol at gmail.com> wrote:
>
> at one point Monday I accidentally launched a thousand freeswitch
> processes
> and crashed my box.  Well that was dumb.  But here is a patch to switch.cthat
> makes freeswitch refuse to start if the process listed in
> freeswitch.pid is still running,
> and also does flock locking on the logfile to serialize the time
> between performing
> that check and writing our own pid there.




To anyone that runs multiple instances you want to ensure that the db dir
isnt used by some other FS process as well.

-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
Belfast +44 28 9099 6461        US +1 516 687 5200
http://www.trxtel.com the VoIP provider that pays you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20070221/bde4b327/attachment.html 


More information about the Freeswitch-dev mailing list