]> code.citadel.org Git - citadel.git/blobdiff - citadel/server_main.c
Now the server records the SVN revision in the log at startup.
[citadel.git] / citadel / server_main.c
index 2be4109c57fdb124b2995844a123453d0a99306d..7c453cc1b505deeebd43e037ba40413fff5e39b5 100644 (file)
@@ -72,6 +72,10 @@ const char *CitadelServiceTCP="citadel-TCP";
 
 void go_threading(void);
 
+/*
+ * For the subversion revision number
+ */
+const char *svn_revision(void);
 
 /*
  * Here's where it all begins.
@@ -138,10 +142,6 @@ int main(int argc, char **argv)
                        freopen(&argv[a][2], "w", stderr);
                }
 
-               else if (!strncmp(argv[a], "-f", 2)) {
-                       do_defrag = 1;
-               }
-
                else if (!strncmp(argv[a], "-D", 2)) {
                        dbg = 1;
                }
@@ -157,7 +157,7 @@ int main(int argc, char **argv)
                        CtdlLogPrintf(CTDL_EMERG,       "citserver: usage: "
                                        "citserver "
                                        "[-lLogFacility] "
-                                       "[-d] [-f] [-D] "
+                                       "[-d] [-D] "
                                        " [-tTraceFile]"
                                        " [-xLogLevel] [-hHomeDir]\n");
                        exit(1);
@@ -180,19 +180,14 @@ int main(int argc, char **argv)
        params.debugLevel = ECRASH_DEBUG_VERBOSE;
        params.dumpAllThreads = TRUE;
        params.useBacktraceSymbols = 1;
-///    BuildSymbolTable(&symbol_table);
-//     params.symbolTable = &symbol_table;
        params.signals[0]=SIGSEGV;
        params.signals[1]=SIGILL;
        params.signals[2]=SIGBUS;
        params.signals[3]=SIGABRT;
-
        eCrash_Init(&params);
-               
        eCrash_RegisterThread("MasterThread", 0);
-
-///    signal(SIGSEGV, cit_panic_backtrace);
 #endif
+
        /* Initialize the syslogger.  Yes, we are really using 0 as the
         * facility, because we are going to bitwise-OR the facility to
         * the severity of each message, allowing us to write to other
@@ -209,6 +204,8 @@ int main(int argc, char **argv)
        CtdlLogPrintf(CTDL_NOTICE,
                "*** Citadel server engine v%d.%02d ***\n",
                (REV_LEVEL/100), (REV_LEVEL%100));
+       CtdlLogPrintf(CTDL_NOTICE,
+               "*** Build number %s ***\n", svn_revision());
        CtdlLogPrintf(CTDL_NOTICE,
                "Copyright (C) 1987-2008 by the Citadel development team.\n");
        CtdlLogPrintf(CTDL_NOTICE,