Frontend Server. The size is given with option -r.
+Added support for specifying the max log file size for the Generic
+Frontend Server. The size is given with option -r.
+
--- 2.1.32 2006/09/21
Fix problem introduced in YAZ 2.1.28 WRT unix sockets in the ZOOM code.
<!--
- $Id: gfs-options.xml,v 1.5 2006-04-25 11:25:08 marc Exp $
+ $Id: gfs-options.xml,v 1.6 2006-09-29 13:20:22 adam Exp $
Options for generic frontend server and yaz-ztest.
Included in both manual and man page for yaz-ztest
-->
</para></listitem>
</varlistentry>
+ <varlistentry><term><literal>-r </literal>
+ <replaceable>size</replaceable></term>
+ <listitem><para>
+ Maximum size of log file before rotation occurs, in kilobytes.
+ Default size is 1048576 k (=1 GB).
+ </para></listitem>
+ </varlistentry>
+
<varlistentry><term><literal>-d </literal>
<replaceable>daemon</replaceable></term>
<listitem><para>
<!--
- $Id: gfs-synopsis.xml,v 1.3 2006-04-25 11:25:08 marc Exp $
+ $Id: gfs-synopsis.xml,v 1.4 2006-09-29 13:20:22 adam Exp $
cmd description of YAZ GFS application.
Included in both manual and man page for yaz-ztest
-->
<arg choice="opt"><option>-d <replaceable>daemon</replaceable></option></arg>
<arg choice="opt"><option>-w <replaceable>dir</replaceable></option></arg>
<arg choice="opt"><option>-p <replaceable>pidfile</replaceable></option></arg>
+ <arg choice="opt"><option>-r <replaceable>kilobytes</replaceable></option></arg>
<arg choice="opt"><option>-ziDST1</option></arg>
<arg choice="opt" rep="repeat">listener-spec</arg>
</cmdsynopsis>
* NT threaded server code by
* Chas Woodfield, Fretwell Downing Informatics.
*
- * $Id: statserv.c,v 1.43 2006-09-27 11:39:02 adam Exp $
+ * $Id: statserv.c,v 1.44 2006-09-29 13:20:23 adam Exp $
*/
/**
}
get_logbits(1);
- while ((ret = options("1a:iszSTl:v:u:c:w:t:k:d:A:p:DC:f:m:",
+ while ((ret = options("1a:iszSTl:v:u:c:w:t:k:d:A:p:DC:f:m:r:",
argv, argc, &arg)) != -2)
{
switch (ret)
case 'D':
control_block.background = 1;
break;
+ case 'r':
+ if (!arg || !(r = atoi(arg)))
+ {
+ fprintf(stderr, "%s: Specify positive size for -r.\n", me);
+ return(1);
+ }
+ yaz_log_init_max_size(r * 1024);
+ break;
default:
fprintf(stderr, "Usage: %s [ -a <pdufile> -v <loglevel>"
" -l <logfile> -u <user> -c <config> -t <minutes>"