=head1 NAME rc.news - Start or stop INN daemons =head1 SYNOPSIS B [start | stop] =head1 DESCRIPTION B can be used to start or stop B 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 preceeding shutdown, emails certain boot-time warnings to I (as set in F), 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 I are created with the right ownership (though this is less important for C), and therefore requires that F be setuid root, see inndstart(8) for discussion. Programs run and stopped by this script include: =over 4 =item * Always: B is run, and B is stopped. =item * If I is true in F: B is started and stopped. =item * If I is true in F: B is run; B and B are stopped. =item * If F exists in I: B is run with argument C or C (to perform site-specific startup or shutdown tasks). =back =head1 OPTIONS =over 4 =item C If the first argument is C, or no first argument is given, B initiates INN startup. =item C If the first argument is C, B initiates INN shutdown. It is recommended to throttle the server first as described in ctlinnd(8). =back =head1 EXAMPLES To start INN and leave certain error messages going to the terminal: su - news -c ~news/bin/rc.news To run INN at startup time from appropriate system boot scripts: su - news -c ~news/bin/rc.news >/dev/console To stop INN (throttling first): ~news/bin/ctlinnd throttle reason su - news -c '~news/bin/rc.news stop' =head1 BUGS Running C 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. =head1 HISTORY // FIXME: any attribution for rc.news itself? This manual page written by Jeffrey M. Vinocur for InterNetNews. $Id: rc.news.pod 5908 2002-12-03 04:41:36Z vinocur $ =head1 SEE ALSO ctlinnd(8), cnfsstat(8), inn.conf(5), inndstart(8), innwatch(8), ovdb(5). =cut