home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff319.lzh / CNewsSrc / cnews.orig.lzh / misc / newsboot < prev    next >
Text File  |  1989-06-27  |  583b  |  30 lines

  1. #! /bin/sh
  2. # newsboot - clean up on reboot
  3.  
  4. # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  5. . ${NEWSCONFIG-/usr/lib/news/bin/config}
  6.  
  7. PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
  8. umask $NEWSUMASK
  9.  
  10. cd $NEWSCTL
  11. rm -f L.* LOCK*                # leftover locks
  12. rm -f history.n*            # leftover expire work files
  13. rm -f $NEWSARTS/in.coming/nspool.*    # leftover input temporaries
  14.  
  15. # nntp goo processing
  16. cd $NEWSARTS/in.coming
  17. for f in nntp.*                # find partial batches
  18. do
  19.     while test -f $f        # still there?
  20.     do
  21.         name=`getdate now`
  22.         if test ! -f $name
  23.         then
  24.             mv $f $name
  25.         else
  26.             sleep 2
  27.         fi
  28.     done
  29. done
  30.