[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
> 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...
More information about the Freeswitch-dev