#! /bin/sh
#
# /etc/init.d/cnews, based on ...
#
# /etc/init.d/skeleton: example file to build /etc/init.d/ scripts.
# $Id: skeleton,v 1.1 1995/02/19 20:29:29 imurdock Exp $
#
# Written by Miquel van Smoorenburg <miquels@drinkel.nl.mugnet.org>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for cnews by Otmar Lendl <lendl@cosy.sbg.ac.at>
#
# NO_RESTART_ON_UPGRADE

. /etc/init.d/functions

test -f /usr/lib/news/maint/newsboot || exit 0

case "$1" in
  start)
	echo "Cleaning up stale LOCKs for C News"
	su news /usr/lib/news/maint/newsboot
    ;;
  stop)
	# Nothing needed
    ;;
  *)
    echo "Usage: /etc/init.d/cnews {start|stop}"
    exit 1
esac

exit 0
