X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/a7aaa15b9c60338e95ce099cffce95b510a916c2..refs/heads/LOCKING:/server/mr_srvdata.c diff --git a/server/mr_srvdata.c b/server/mr_srvdata.c index e6e5c5f0..0118d46a 100644 --- a/server/mr_srvdata.c +++ b/server/mr_srvdata.c @@ -4,26 +4,18 @@ * $Header$ * * Copyright (C) 1987 by the Massachusetts Institute of Technology + * For copying and distribution information, please see the file + * . * * Global variables inside the SMS server. - * - * $Log$ - * Revision 1.3 1987-06-30 20:03:15 wesommer - * Added local realm global variable. - * - * Revision 1.2 87/06/21 16:42:16 wesommer - * Performance work, rearrangement of include files. - * - * Revision 1.1 87/06/02 20:07:25 wesommer - * Initial revision - * */ #ifndef lint -static char *rcsid_sms_srvdata_c = "$Header$"; +static char *rcsid_mr_srvdata_c = "$Header$"; #endif lint -#include "sms_server.h" +#include +#include "mr_server.h" /* * Connections & clients: @@ -53,7 +45,7 @@ struct sockaddr_in client_addr; int client_addrlen; /* * Additional data sent at connect time by the client - * (provided by GDB; ignored by SMS) + * (provided by GDB; ignored by Moira) */ TUPLE client_tuple; @@ -67,13 +59,39 @@ char *whoami; char buf1[BUFSIZ]; /* - * If non-null, reason for shutdown. (SMS will be going down shortly + * If non-null, reason for shutdown. (Moira will be going down shortly * if this is non-null) */ char *takedown=NULL; +/* States for putting the server to sleep & waking it up again. */ +int dormant = AWAKE; + /* * The name of the local Kerberos realm */ char *krb_realm = NULL; +/* + * Logging levels. + */ + +int log_flags = LOG_CONNECT|LOG_REQUESTS|LOG_ARGS|LOG_RES; + +/* + * Time of last time through main loop. + */ +time_t now; + + +/* + * Statistics on number of queries of each version that have been attempted + */ + +int newqueries = 0; +int oldqueries = 0; + + +/* Journalling file */ +FILE *journal = NULL; +