Managed web hosting - Creating buffers for cnfs storage You can use

Creating buffers for cnfs storage You can use the dd command to create a big file that exists on top of your regular file system. Here is an example of the dd command for creating a buffer file: dd if=/dev/zero of=/var/spool/news/articles/cycbuff bs=32k count=N In this example, N would be replaced with the size of the buffer that you want, divided by 32. The news user and newsgroup must be assigned ownership of the buffer file you create. The permission mode should be 0664 or 0660. For example: chown news /var/spool/news/articles/cycbuff chgrp news /var/spool/news/articles/cycbuff chmod 0664 /var/spool/news/articles/cycbuff Setting Up Expiration Times Expiration times for news articles are set in the /etc/news/expire.ctl file. Existing entries in that file can be used as your default expiration times. With the remember entry, an article (even if it is expired) is remembered for 10 days. In this way, if the article is offered from another news feed, you can accept it. Here is the remember entry included in expire.ctl: /remember/:10 If you want the Expires: headers to work, leave the following entry in your expire.ctl file: *:A:1:10:never Some groups are good to keep around forever. Here are two lines in the expire.ctl file that keep articles around longer for all newsgroups that end in .answers and all that begin with news.announce: *.answers:M:1:35:90 news.announce.*:M:1:35:90 Three different formats exist for entries in the expire.ctl file. The first format is represented by the /remember/ entry shown previously. The next is an entry for defining the expiration times associated with classes that are set in the storage.conf file. The other format contains five colon-separated fields that assign expiration to particular groups. Here are examples of the latter two formats: classnumber:keep:default:purge newsgroups:modflag:keep:default:purge The following are descriptions of each of the fields: classnumber: A number (0, 1, and so on) that corresponds with a class that is identified in the storage.conf file. newsgroups: The first field specifies which newsgroups are assigned to this expiration rule. As usual, you can use wildmat characters to match newsgroups. (Refer to the Understanding Wildmat Characters sidebar for details.)
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

Leave a Reply