X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver_main.c;h=2987da3ec6002ee9d6d4adc6e080b52b61520545;hb=5644ab7ce8a7f8515e1db6d88e6f07eb97797572;hp=b0cd8f167b00be70be9f76b5822e4191afd2583d;hpb=bcbaf2800c778043c12f9fd2d719ca9271ac6cb4;p=citadel.git diff --git a/citadel/server_main.c b/citadel/server_main.c index b0cd8f167..2987da3ec 100644 --- a/citadel/server_main.c +++ b/citadel/server_main.c @@ -1,7 +1,7 @@ /* * citserver's main() function lives here. * - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2014 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -74,9 +74,6 @@ #include #endif -#ifndef HAVE_SNPRINTF -#include "snprintf.h" -#endif const char *CitadelServiceUDS="citadel-UDS"; const char *CitadelServiceTCP="citadel-TCP"; @@ -89,6 +86,7 @@ void go_threading(void); */ int main(int argc, char **argv) { + size_t basesize = 64; char facility[32]; int a; /* General-purpose variables */ struct passwd pw, *pwp = NULL; @@ -114,7 +112,7 @@ int main(int argc, char **argv) InitializeMasterTSD(); /* parse command-line arguments */ - while ((a=getopt(argc, argv, "l:dh:x:t:Dr")) != EOF) switch(a) { + while ((a=getopt(argc, argv, "l:dh:x:t:B:Dr")) != EOF) switch(a) { case 'l': safestrncpy(facility, optarg, sizeof(facility)); @@ -143,6 +141,9 @@ int main(int argc, char **argv) case 't': /* deprecated */ break; + case 'B': /* Basesize */ + basesize = atoi(optarg); + break; case 'D': dbg = 1; @@ -165,7 +166,7 @@ int main(int argc, char **argv) ); exit(1); } - + StartLibCitadel(basesize); openlog("citserver", ( running_as_daemon ? (LOG_PID) : (LOG_PID | LOG_PERROR) ), syslog_facility @@ -200,7 +201,7 @@ int main(int argc, char **argv) syslog(LOG_NOTICE, "*** Citadel server engine v%d.%02d (build %s) ***", (REV_LEVEL/100), (REV_LEVEL%100), svn_revision()); - syslog(LOG_NOTICE, "Copyright (C) 1987-2012 by the Citadel development team."); + syslog(LOG_NOTICE, "Copyright (C) 1987-2014 by the Citadel development team."); syslog(LOG_NOTICE, "This program is distributed under the terms of the GNU " "General Public License."); syslog(LOG_NOTICE, " ");