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
14 # Source networking configuration.
15 . /etc/sysconfig/network
18 . /usr/share/news/innshellvars
20 # Check that networking is up.
21 [ "${NETWORKING}" = "no" ] && exit 0
23 # See how we were called.
26 if [ ! -f /var/lock/subsys/inn ]; then
27 show Starting INN service
30 # DOINNWATCH=`echo ${DOINNWATCH} | tr A-Z a-z`
31 # if [ -z "${DOINNWATCH}" -o "${DOINNWATCH}" = "on" -o "${DOINNWATCH}" = "true" -o "${DOINNWATCH}" = "yes" ]; then
32 # show Starting INN Watch service
38 echo 'INND is running'
40 touch /var/lock/subsys/inn
43 if [ -f /var/run/news/innd.pid ]; then
44 show Stopping INN service
46 rm -f /var/run/news/innd.pid
49 # if [ -f /var/run/news/innwatch.pid ]; then
50 # show Stopping INN Watch service
51 # killproc innwatch -9
52 # rm -f /var/run/news/innwatch.pid /var/run/news/LOCK.innwatch
55 if [ -f /var/run/news/infeed.pid ]; then
56 show Stopping INN Feed service
58 rm -f /var/run/news/innfeed.pid
61 if [ -f /var/run/news/actived.pid ]; then
62 show Stopping INN Actived service
64 rm -f /var/run/news/actived.pid
67 rm -f /var/lock/subsys/inn
73 show Reloading INND service
81 echo "Usage: $0 {start|stop|status|restart}"