Change freeswitch.xml.fsxml path
Hi guys. I'm planning to put FS on a Compact Flash system. I read on docs that ./freeswitch/log/freeswitch.xml.fsxml file is the result of parsing of various xml conf files and that it is the real "engine" file for FS when it is running. I also read to not modify this file while FS is running. Usually I put all logs files in tmpfs volatile ram filesystem to avoid disk space consuming and also limit CF write cycles. Well, the problem is that I also usually delete each night all files from tmpfs log directories because I need to avoid RAM saturation due to log files In this scenario, also freeswitch.xml.fsxml will be deleted each night. This, I understand, is not good ... During compilation phases I found parameters to change the path where FS puts .pid file or db files etc, but nothing about this file. The question is: can anybody suggest a way to change the location of this file? O can anybody ensure me that deleting this file while FS is running is not a big deal? Thanks a lot!!! giuliano
Or... you can delete only freeswitch.log* Or you can set "fsctl loglevel 0" so FS doesn't save a log at all. -Avi Marcus On Wed, Mar 13, 2013 at 3:37 PM, G <g.d.monnezza@tiscali.it> wrote:
Hi guys. I'm planning to put FS on a Compact Flash system.
I read on docs that ./freeswitch/log/freeswitch.xml.fsxml file is the result of parsing of various xml conf files and that it is the real "engine" file for FS when it is running. I also read to not modify this file while FS is running.
Usually I put all logs files in tmpfs volatile ram filesystem to avoid disk space consuming and also limit CF write cycles. Well, the problem is that I also usually delete each night all files from tmpfs log directories because I need to avoid RAM saturation due to log files In this scenario, also freeswitch.xml.fsxml will be deleted each night. This, I understand, is not good ... During compilation phases I found parameters to change the path where FS puts .pid file or db files etc, but nothing about this file.
The question is: can anybody suggest a way to change the location of this file? O can anybody ensure me that deleting this file while FS is running is not a big deal?
Thanks a lot!!! giuliano
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I don't believe the freeswitch.xml.fsxml is used at all after startup. Is there for your human convenience, as a dump of the full in-memory XML that FS builds from config files, with variable substitution and other tricks done by the pre-processor. So you can have a precise idea of what end result FS sees. So, I believe you can safely delete that file. Please someone else correct me if wrong. -giovanni On Wed, Mar 13, 2013 at 2:50 PM, Avi Marcus <avi@avimarcus.net> wrote:
Or... you can delete only freeswitch.log* Or you can set "fsctl loglevel 0" so FS doesn't save a log at all.
-Avi Marcus
On Wed, Mar 13, 2013 at 3:37 PM, G <g.d.monnezza@tiscali.it> wrote:
Hi guys. I'm planning to put FS on a Compact Flash system.
I read on docs that ./freeswitch/log/freeswitch.xml.fsxml file is the result of parsing of various xml conf files and that it is the real "engine" file for FS when it is running. I also read to not modify this file while FS is running.
Usually I put all logs files in tmpfs volatile ram filesystem to avoid disk space consuming and also limit CF write cycles. Well, the problem is that I also usually delete each night all files from tmpfs log directories because I need to avoid RAM saturation due to log files In this scenario, also freeswitch.xml.fsxml will be deleted each night. This, I understand, is not good ... During compilation phases I found parameters to change the path where FS puts .pid file or db files etc, but nothing about this file.
The question is: can anybody suggest a way to change the location of this file? O can anybody ensure me that deleting this file while FS is running is not a big deal?
Thanks a lot!!! giuliano
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Having done CF based systems in the past why don't you do something more sane like targeted deletion of logs on the tmpfs mount? This allows you to keep some log files around, also to keep tmpfs from eatting all the ram specify a sane max size limit for that mount this helps avoid the whole ram saturation thing. On 3/13/13 7:37 AM, "G" <g.d.monnezza@tiscali.it> wrote:
Hi guys. I'm planning to put FS on a Compact Flash system.
I read on docs that ./freeswitch/log/freeswitch.xml.fsxml file is the result of parsing of various xml conf files and that it is the real "engine" file for FS when it is running. I also read to not modify this file while FS is running.
Usually I put all logs files in tmpfs volatile ram filesystem to avoid disk space consuming and also limit CF write cycles. Well, the problem is that I also usually delete each night all files from tmpfs log directories because I need to avoid RAM saturation due to log files In this scenario, also freeswitch.xml.fsxml will be deleted each night. This, I understand, is not good ... During compilation phases I found parameters to change the path where FS puts .pid file or db files etc, but nothing about this file.
The question is: can anybody suggest a way to change the location of this file? O can anybody ensure me that deleting this file while FS is running is not a big deal?
Thanks a lot!!! giuliano
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
participants (4)
-
Avi Marcus
-
G
-
Giovanni Maruzzelli
-
Ken Rice