[Freeswitch-users] Any way to block on "freeswitch.xml.fsxml" being generated?

Nathan Neulinger nneul at mst.edu
Thu Mar 13 15:35:38 MSK 2014


Yeah, I'm not looking at it for editing... Looking at it for logging a consolidated "final parsed version of entire XML 
configuration - here's what changed since last reloadxml".  Helpful for diagnostics to get auto-generated changes logged 
in one place.

Are you saying that because of how it's used elsewhere in the system, it HAS to be rewritten in-place?


Overall goal - I'd like to be able to rely on the content of the filesystem for configuration to be stable/static after 
completion of reloadxml, and right now, it's still getting written/changed, with no way to see when it's finished.

-- Nathan

On 03/12/2014 06:29 PM, Brian West wrote:
> That file is there for reference only, its some memmap stuff going on.  So you don’t edit that file but you could and it won’t do you much good.
>
> --
> Brian West
> brian at freeswitch.org
> FreeSWITCH Solutions, LLC
> PO BOX 2531
> Brookfield, WI 53008-2531
> Twitter: @FreeSWITCH , @briankwest
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
> iNUM: +883 5100 1420 9001
> ISN: 410*543
> Skype:briankwest
> PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Mar 12, 2014, at 3:34 PM, Nathan Neulinger <nneul at mst.edu> wrote:
>
>> Right now, if you run reloadxml, it returns completion, but the merged config is often not fully written. Is there any
>> way to wait for that to fully generate?
>>
>> Or alternatively, could this code be changed to have that file updated atomically (written to tmp file + renamed into
>> place)?
>>
>> Seems like it would be a relatively trivial change to switch_xml_parse_file to do it atomically.
>>
>> -- Nathan
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>

-- 
------------------------------------------------------------
Nathan Neulinger                       nneul at mst.edu
Missouri S&T Information Technology    (573) 612-1412
System Administrator - Architect



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list