#include "private/switch_core_pvt.h"
/* pid filename: Stores the process id of the freeswitch process */
-#define PIDFILE "freeswitch.pid"
+#define PIDFILE "sangoma-media-gateway.pid"
static char *pfile = PIDFILE;
-
+ static int system_ready = 0;
/* Picky compiler */
#ifdef __ICC
"\t-nort -- disable clock clock_realtime\n"
"\t-stop -- stop freeswitch\n"
"\t-nc -- do not output to a console and background\n"
+ #ifndef WIN32
+ "\t-ncwait -- do not output to a console and background but wait until the system is ready before exiting (implies -nc)\n"
+ #endif
"\t-c -- output to a console and stay in the foreground\n"
+ "\t-base [basedir] -- specify an alternate base dir\n"
"\t-conf [confdir] -- specify an alternate config dir\n"
"\t-log [logdir] -- specify an alternate log dir\n"
"\t-run [rundir] -- specify an alternate run dir\n"