mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
tear the hell out of everything and rip it up into itsy bitsy pieces and put it all back together
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5765 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
10
src/switch.c
10
src/switch.c
@@ -213,6 +213,7 @@ int main(int argc, char *argv[])
|
||||
char *usageDesc;
|
||||
int alt_dirs = 0;
|
||||
int known_opt;
|
||||
switch_core_flag_t flags = SCF_USE_SQL;
|
||||
|
||||
#ifdef WIN32
|
||||
SERVICE_TABLE_ENTRY dispatchTable[] = {
|
||||
@@ -224,6 +225,7 @@ int main(int argc, char *argv[])
|
||||
"\t-install -- install freeswitch as a service\n"
|
||||
"\t-uninstall -- remove freeswitch as a service\n"
|
||||
"\t-hp -- enable high priority settings\n"
|
||||
"\t-nosql -- disable internal sql scoreboard\n"
|
||||
"\t-stop -- stop freeswitch\n"
|
||||
"\t-nc -- do not output to a console and background\n"
|
||||
"\t-conf [confdir] -- specify an alternate config dir\n"
|
||||
@@ -233,6 +235,7 @@ int main(int argc, char *argv[])
|
||||
"\t-help -- this message\n"
|
||||
"\t-nf -- no forking\n"
|
||||
"\t-hp -- enable high priority settings\n"
|
||||
"\t-nosql -- disable internal sql scoreboard\n"
|
||||
"\t-stop -- stop freeswitch\n"
|
||||
"\t-nc -- do not output to a console and background\n"
|
||||
"\t-conf [confdir] -- specify an alternate config dir\n"
|
||||
@@ -291,6 +294,11 @@ int main(int argc, char *argv[])
|
||||
known_opt++;
|
||||
}
|
||||
|
||||
if (argv[x] && !strcmp(argv[x], "-nosql")) {
|
||||
flags &= ~SCF_USE_SQL;
|
||||
known_opt++;
|
||||
}
|
||||
|
||||
if (argv[x] && !strcmp(argv[x], "-stop")) {
|
||||
die++;
|
||||
known_opt++;
|
||||
@@ -372,7 +380,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
}
|
||||
|
||||
if (switch_core_init_and_modload(nc ? lfile : NULL, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_init_and_modload(nc ? lfile : NULL, flags, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
fprintf(stderr, "Cannot Initilize [%s]\n", err);
|
||||
return 255;
|
||||
}
|
||||
|
Reference in New Issue
Block a user