cycbuff.conf - configuration file for CNFS method
The file consists of a series of lines; blank lines and lines beginning with a number sign (``#'') are ignored. There are four kinds of configuration lines: ``cycbuffupdate'', ``refreshinterval'', ``cycbuff'' and ``metacycbuff.'' The order of lines in this file is not important among the same kind of configuration line. But all ``cycbuff'' lines should be presented before any ``metacycbuff'' lines.
``Cycbuffupdate'' line is formatted as:
cycbuffupdate:update
``Update'' is how many article-stores between cycbuff header updates. This line can be omitted and the default value is ``25.''
``Refreshinterval'' line is formatted as:
refreshinterval:interval
``Inerval'' is what interval (seconds) between rereading cycbuff header if cycbuff is preopend. (This is in the case nnrpd(8) runs as a daemon.) This line can be omitted and the default value is ``30.''
``Cycbuff'' line is formatted as:
cycbuff:buffer_name:file_name:buffer_size
``Buffer_name'' is the symbolic name of the buffer. The length of this name should be within 7 letters. This name is referred at ``metacycbuff'' lines. ``File_name'' is the path to buffer file. The length of this path should be within 63 letters. ``Buffer_size'' is the length of buffer file in kilobytes in decimal (1KB = 1024 bytes). If the ``file_name'' is not a special device, the file should be buffer_size * 1024 bytes.
``Metacycbuff'' line is formatted as:
metacycbuff:meta_cyclic_buffer_name:buffer_names[:mode]
``Meta_cyclic_buffer_name'' is the symbolic name of meta-cyclic buffer. This name is referred at ``options'' field at ``cnfs'' entries in storage.conf(5). ``Buffer_names'' is comma separated list of symbolic names of ``cycbuff.'' These buffer names should be defined at ``cycbuff'' lines. If ``buffer_names'' has more than one buffer names, CNFS method stores articles into each ``cycbuff'' in order cyclically. ``Mode'' is the mode of storing article. Currently there are two mode; ``INTERLEAVE'' and ``SEQUENTIAL''. Mode ``INTERLEAVE'' is to store articles into each cycbuff in round robin way. Mode ``SEQUENTIAL'' is to store articles sequentially into one cycbuff until it is filled up. ``Mode'' is optional and the default value without this option is ``INTERLEAVE''.
Also it is necessary to set up ``options'' field at ``cnfs'' entries in storage.conf(5) to use CNFS method. That field should be one of ``meta_cyclic_buffer_name'' defined at ``metacycbuff'' lines.
To create new ``cycbuff'', there are two different methods for creating the cyclic buffer files.
#!/bin/sh disk=$1 link=`ls -l /dev/dsk/$disk | awk '{print $11}'` major=`ls -l /dev/dsk/$link | awk '{print $5}' | tr -d ,` minor=`ls -l /dev/dsk/$link | awk '{print $6}` mkdir /cycbuff mknod /cycbuff/$disk b $major $minorThe created device files themselves consume very little space.
In either case, make certain that each overview buffer file is owned by <USER specified with --with-news-user at configure>, <GROUP specified with --with-news-group at configure>, and has read/write modes for the owner and group (mode ``0664'' or ``0660'').
When you first start innd and everything is configured properly, you should see messages in news.notice which look like:
Mar 1 00:00:00 kevlar innd: CNFS-sm No magic cookie found for cycbuff ONE, initializing
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |