#!/bin/sh
#
# This script starts 'postit' in a way that feedfiles are properly
# flushed and re-created.

# Enter your paths here:
SPOOLPATH=/var/spool/news
OUTGOING=${SPOOLPATH}/out.going
BINPATH=/usr/lib/news/bin

# Below is an example for a feedfile called "foo", which is to be fed
# to "news.foo.org".  We flush the feed, then rename it, restart the
# feed process, and finally process the renamed feedfile.

# ${BINPATH}/ctlinnd flush foo
# mv ${OUTGOING}/foo ${OUTGOING}/foo.postit
# ${BINPATH}/ctlinnd begin foo
# ${BINPATH}/postit foo.postit news.foo.org

