🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11776

Re: SunOS, INN, Disk Corruption, have you seen this?

#11776
From: Alan Brown
Date: Sat, 19 Oct 1996 00:00
39 lines
1942 bytes
In article <5448lu$9ov@ntous.tous.oau.org>,
Robert B. Tate <rbt@ntous.tous.oau.org> wrote:

>I had problems like that and what I found was that when there were several 
>rnews  programs running on the in.coming directory I had problems. 

I did too.

Here's my script. I run it out of crontab hourly with the echos piped to 
a serial terminal I had sitting round and pressganged into service as a 
logger. Shlock is far easier on system resources than ps ax :-)

#!/bin/sh
# clear.in.coming.sh
# script to run rnews -U, ensuring that only one copy is running.
# Uses the basic shlock building block.
# AJB 17 July 1994

       LOCK=/usr/local/news/LOCK.rnewsU
          trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
          if /usr/local/news/bin/shlock -p $$ -f ${LOCK} ; then
              # Do appropriate work
		echo 'Starting rnews -U' 
		/usr/bin/rnews -U > /dev/cub1
		echo 'rnews -U finished' 
          else
              echo Locked by `cat ${LOCK}`
          fi
exit 0




-- 
If you go down to the woods today you're sure for a big surpise: Teddies 
in leather who bang heads together, with black liner round their eyes.

Technical Details
Message-ID: <548787$c7t@papaioea.manawatu.gen.nz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.admin.mbox.zip!not-for-mail
References: <nui7motvaw1.fsf@northshore.shore.net> <5448lu$9ov@ntous.tous.oau.org>

Show Full Headers
Complete Article Headers
Message-ID: <548787$c7t@papaioea.manawatu.gen.nz>
Subject: Re: SunOS, INN, Disk Corruption, have you seen this?
Date: Sat, 19 Oct 1996 00:00:00 +0000
From: alan@papaioea.manawatu.gen.nz (Alan Brown)
References: <nui7motvaw1.fsf@northshore.shore.net> <5448lu$9ov@ntous.tous.oau.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.sun.admin.mbox.zip!not-for-mail
X-Deja-AN: 190319999
Content-type: text/plain; charset=iso-8859-1
Organization: PlaNet (NZ) Manawatu, Palmerston North +64 6 357-9245, Levin +64 6 367 9944
Mime-version: 1.0
Newsgroups: news.software.nntp,comp.sys.sun.admin