#! /bin/sh
#
# NewsCache		Caching News Server
#
# chkconfig: - 95 25
# description: NewsCache is a news server who could be useful in contexts\
#              where several persons are getting news by dial-up IP.

# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi


# See how we were called.
case "$1" in
  start)
	echo -n "Starting NewsCache system: "
	/usr/sbin/NewsCache
	;;
  stop)
	echo -n "Stopping NewsCache service: "
	killproc NewsCache
	fi
	echo 
	rm -f /var/lock/subsys/news /var/lock/news/*
	;;
  *)
	echo "Usage: $0 {start|stop}"
	exit 1
esac

exit 0
