3 # innd InterNet News System
6 # description: inn is the most popular server for Usenet news. It allows \
7 # you to setup local news servers. It can be difficult to \
8 # set up properly though, so be sure to read /usr/doc/inn* \
11 # Source function library.
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
17 # Check that networking is up.
18 if [ ${NETWORKING} = "no" ]
23 [ -d /etc/news ] || exit 0
24 [ -d /usr/lib/news ] || exit 0
25 [ -d /var/spool/news ] || exit 0
27 # See how we were called.
30 echo -n "Starting INND system: "
31 su news -c /etc/rc.d/rc.news
32 touch /var/lock/subsys/news
35 echo -n "Stopping INND service: "
36 su news -c "/usr/lib/news/bin/ctlinnd shutdown 'stop required'" &
37 # give it a try to die gracefuly
39 # just in case innd didn't die gracefully
40 if [ -f /var/run/news/innd.pid ]
42 kill -9 `cat /var/run/news/innd.pid`
43 rm -f /var/run/news/innd.pid
45 # always echo that INND is shut down
47 if [ -f /var/run/news/innwatch.pid ]
49 kill -9 `cat /var/run/news/innwatch.pid`
50 rm -f /var/run/news/innwatch.pid
54 rm -f /var/lock/subsys/news /var/lock/news/*
60 kill -HUP `cat /var/run/news/innd.pid`
63 echo "Usage: $0 {start|stop|status|restart}"