Options for configure script
Hi there, Anyone knows how to configure FS in order to have log folder in /var/log/freeswitch ? I did ./configure --prefix=/opt/freeswitch and after install I got logs, pid file and cdrs under /opt/freeswitch/log Thanks in advance. Pablo
You can specify those as runtime argument. $ ./freeswitch -h these are the optional arguments you can pass to freeswitch -nf -- no forking -u [user] -- specify user to switch to -g [group] -- specify group to switch to -help -- this message -core -- dump cores -hp -- enable high priority settings -vg -- run under valgrind -nosql -- disable internal sql scoreboard -stop -- stop freeswitch -nc -- do not output to a console and background -c -- output to a console and stay in the foreground -conf [confdir] -- specify an alternate config dir -log [logdir] -- specify an alternate log dir -db [dbdir] -- specify an alternate db dir -mod [moddir] -- specify an alternate mod dir -htdocs [htdocsdir] -- specify an alternate htdocs dir -scripts [scriptsdir] -- specify an alternate scripts dir But in my opinion, you should keep all files at the same place and make a symbolic link if you really want stuf to be accessible from /var/log Mathieu
Thanks Mathieu. So, it is not possible to set this at build time by passing a parameter to the configure script... IMHO, a symbolic link is not a good idea in production environments. BR Pablo On Tue, Feb 17, 2009 at 1:05 PM, Mathieu Rene <mrene_lists@avgs.ca> wrote:
You can specify those as runtime argument.
$ ./freeswitch -h these are the optional arguments you can pass to freeswitch -nf -- no forking -u [user] -- specify user to switch to -g [group] -- specify group to switch to -help -- this message -core -- dump cores -hp -- enable high priority settings -vg -- run under valgrind -nosql -- disable internal sql scoreboard -stop -- stop freeswitch -nc -- do not output to a console and background -c -- output to a console and stay in the foreground -conf [confdir] -- specify an alternate config dir -log [logdir] -- specify an alternate log dir -db [dbdir] -- specify an alternate db dir -mod [moddir] -- specify an alternate mod dir -htdocs [htdocsdir] -- specify an alternate htdocs dir -scripts [scriptsdir] -- specify an alternate scripts dir
But in my opinion, you should keep all files at the same place and make a symbolic link if you really want stuf to be accessible from /var/log
Mathieu
_______________________________________________ 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
On Tue, Feb 17, 2009 at 8:54 AM, Pablo Hernan Saro <pablosaro@gmail.com> wrote:
Thanks Mathieu. So, it is not possible to set this at build time by passing a parameter to the configure script... IMHO, a symbolic link is not a good idea in production environments. BR
You can also specify these in the config files. You can put the logs and/or CDR files wherever you'd like. If you open up conf/autoload_configs/logfile.conf.xml you'll see that there is a line commented out - this line will let you choose the default log file path. In fact, I think you'll approve of the location already specified on that line. :) -MC
Hi Michael, Thank you very much for your help. It meets my needs. I was thinking in something like: ./configure --prefix=/opt/freeswitch --localstatedir=/var/log/freeswitch But I can get same results changing the default configuration of conf/autoload_configs/logfile.conf.xml and conf/autoload_configs/xml_cdr.conf.xml. Regards, Pablo On Tue, Feb 17, 2009 at 3:34 PM, Michael Collins <msc@freeswitch.org> wrote:
On Tue, Feb 17, 2009 at 8:54 AM, Pablo Hernan Saro <pablosaro@gmail.com> wrote:
Thanks Mathieu. So, it is not possible to set this at build time by passing a parameter to the configure script... IMHO, a symbolic link is not a good idea in production environments. BR
You can also specify these in the config files. You can put the logs and/or CDR files wherever you'd like. If you open up conf/autoload_configs/logfile.conf.xml you'll see that there is a line commented out - this line will let you choose the default log file path. In fact, I think you'll approve of the location already specified on that line. :)
-MC
_______________________________________________ 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
We don't yet support localstatedir configure option. I expect we will soon. Mike On Feb 17, 2009, at 12:59 PM, Pablo Hernan Saro wrote:
Hi Michael,
Thank you very much for your help. It meets my needs. I was thinking in something like: ./configure --prefix=/opt/freeswitch --localstatedir=/var/log/ freeswitch But I can get same results changing the default configuration of conf/autoload_configs/logfile.conf.xml and conf/autoload_configs/xml_cdr.conf.xml. Regards,
Pablo
participants (4)
-
Mathieu Rene
-
Michael Collins
-
Michael Jerris
-
Pablo Hernan Saro