[Freeswitch-svn] [commit] r7350 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri Jan 25 09:08:53 EST 2008


Author: mikej
Date: Fri Jan 25 09:08:53 2008
New Revision: 7350

Modified:
   freeswitch/trunk/src/switch.c

Log:
add -c command line arg to run in console mode.  Should we change the default on release?

Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c	(original)
+++ freeswitch/trunk/src/switch.c	Fri Jan 25 09:08:53 2008
@@ -242,6 +242,7 @@
 		"\t-nosql           -- disable internal sql scoreboard\n"
 		"\t-stop            -- stop freeswitch\n"
 		"\t-nc              -- do not output to a console and background\n"
+		"\t-c              -- output to a console and stay in the foreground\n"
 		"\t-conf [confdir]  -- specify an alternate config dir\n"
 		"\t-log [logdir]    -- specify an alternate log dir\n"
 		"\t-db [dbdir]      -- specify an alternate db dir\n"
@@ -341,6 +342,10 @@
 			known_opt++;
 		}
 
+		if (argv[x] && !strcmp(argv[x], "-c")) {
+			nc = 0;
+			known_opt++;
+		}
 
 		if (argv[x] && !strcmp(argv[x], "-conf")) {
 			x++;



More information about the Freeswitch-svn mailing list