rc.news man page

rc.news — Start or stop INN daemons

Synopsis

rc.news ["start" | "stop"]

Description

rc.news can be used to start or stop innd and supporting programs. It checks to make sure INN is not already running, handles cases of unclean shutdown, finishes up tasks which might have been interrupted by the preceding shutdown, e-mails certain boot-time warnings to newsmaster (as set in inn.conf), and is generally safer and easier than starting and stopping everything directly.  It needs to be run as the news user so that files in pathrun are created with the right ownership (though this is less important for "rc.news stop").

Programs run and stopped by this script include:

Options

"start"

If the first argument is "start", or no first argument is given, rc.news initiates INN startup.

"stop"

If the first argument is "stop", rc.news initiates INN shutdown.

Examples

To start INN and leave certain error messages going to the terminal:

       su news -s /bin/sh -c <pathbin in inn.conf>/rc.news

To run INN at startup time from appropriate system boot scripts:

       su news -s /bin/sh -c <pathbin>/rc.news >> <pathlog>/rc.news 2>&1

To stop INN:

       su news -s /bin/sh -c '<pathbin>/rc.news stop'

Bugs

Running "rc.news start" as root is never the right thing to do, so we should at minimum check for this and error, or perhaps change effective user ID.

History

// FIXME:  any attribution for rc.news itself?

This manual page written by Jeffrey M. Vinocur <jeff@litech.org> for InterNetNews.

$Id: rc.news.pod 9723 2014-09-24 17:54:24Z iulius $

See Also

ctlinnd(8), cnfsstat(8), expirerm(8), inn.conf(5), innwatch(8), ovdb(5).

Referenced By

cnfsstat(8), innd(8), innwatch(8), ovdb_init(8).

2015-09-12 INN 2.6.1 InterNetNews Documentation