#! /bin/sh # newsboot - clean up on reboot # =()<. ${NEWSCONFIG-@@}>()= . ${NEWSCONFIG-/usr/local/lib/news/bin/config} PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH umask $NEWSUMASK cd $NEWSCTL rm -f L.* LOCK* # leftover locks rm -f history.n* # leftover expire work files cd $NEWSARTS/out.going rm -f */L.* */LOCK* # leftover batcher locks cd $NEWSARTS/in.coming rm -f nspool.* nruntmp.* # leftover temporaries for f in nntp.* # find partial batches do while test -f $f # still there? do name=`getdate now` if test ! -f $name then mv $f $name else sleep 2 fi done done