]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add -c command line arg to run in console mode. Should we change the default on...
authorMichael Jerris <mike@jerris.com>
Fri, 25 Jan 2008 14:08:53 +0000 (14:08 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 25 Jan 2008 14:08:53 +0000 (14:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7350 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch.c

index 6093981acfcda9a319f7f6d07fde35e639f4ca30..bac72454bd576769fc5be56b418f6341bfdc303a 100644 (file)
@@ -242,6 +242,7 @@ int main(int argc, char *argv[])
                "\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 @@ int main(int argc, char *argv[])
                        known_opt++;
                }
 
+               if (argv[x] && !strcmp(argv[x], "-c")) {
+                       nc = 0;
+                       known_opt++;
+               }
 
                if (argv[x] && !strcmp(argv[x], "-conf")) {
                        x++;