rc.news8
Start or stop inn daemons
Usage
rc.news [{"start" | "stop"}]
Overview
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:
- •
-
Always:
inndis started or stopped.
- •
-
If doinnwatch is true in inn.conf:
innwatchis started and stopped.
- •
-
If docnfsstat is true in inn.conf:
cnfsstatis started and stopped.
- •
-
If ovmethod is set to
"ovdb"in inn.conf:ovdb_initis run;ovdb_serverandovdb_monitorare stopped.
- •
-
If ovmethod is set to
"ovsqlite"in inn.conf:ovsqlite-serveris started and stopped.
- •
-
If rc.news.local exists in pathbin:
rc.news.localis run with argument"start"or"stop"(to perform site-specific startup or shutdown tasks).
- •
-
When started, if INN appears to have previously been shut down during its expiry process, run
expirermif there are articles to unlink.
- •
-
When started, if overview data appears to have just been rebuilt and active needs to be renumbered, then actually renumber it.
Options
- "start"
-
If the first argument is
"start", or no first argument is given,rc.newsinitiates INN startup.
- "stop"
-
If the first argument is
"stop",rc.newsinitiates 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'
Releases
12 releases since Debian 3.1 (Sarge); the text changed 11 times.