This section provides the procedures for the SunTM Internet News ServerTM command line tasks:.
Solaris ISP Services installation has been completed
NEWS has been registered with the Sun Internet Admistrator (see the online help for the Sun Internet Administrator Register Services Screen)
Sun Internet News Server is installed, and has been configured using the News Administration GUI.
The directories /opt/SUNWsns/sbin and /opt/SUNWsns/bin are in your root $PATH.
The following procedures explain Sun Internet News Server maintenance tasks.
The snsnews(1m) command is used to start and stop the News reader and feeder daemons, for example:
# /etc/init.d/snsnews start # /etc/init.d/snsnews stop |
Newsgroup article expiration is controlled by the configuration file /var/news/config/expire.ctl (see expire.ctl(4) for an extensive description). The file expire.ctl contains two types of entries; one for history retention, and one for newgroup article retention.
The format for newsgroup article retention is:
newsgroup:newsgroup-type:mindays:maxdays:purgerafter
For example, the entries
*:A:5:10:15 alt.binaries.pictures.animals.*:U:2:3:5
Set the default expiration parameters for all newsgroups to be "keep articles for a minimum of five days, expire articles after ten days, and purge articles after fifteen days."
Set the expiration parameters on alt.binaries.pictures.animals.*
, an unmoderated group, to be "keep articles for a minimum of two days, expire articles after three days, and purge articles after five days."
You should expire and purge articles more frequently in groups that are likely to use a lot of storage space, such as groups where binaries are posted.
After you make changes to /var/news/config/expire.ctl, you must stop then start the news server using snsnews.
Blocking news groups from being fed to downstream servers is controlled by the configuration file /var/news/config/newsfeeds (see newsfeeds(4) for an extensive description).
The format for newsgroup blocking is:
server-name:sendgroup,!blockgroup1,!blockgroup2...::
For example, the entries
ME:*,!control,!junk,!local.*:: news.otherplace.com:*,!alt.binaries.*,!local.*::
Send all news groups except control
, junk
, and any group beginning local.
to all servers by default.
Send all groups except groups begining with alt.binaries.
or local.
to the server named news.otherplace.com
.
After you make changes to /var/news/config/newsfeeds, you must stop then start the news server using snsnews.