🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81486

cnfsstat default "l" time

#81486
From: John F. Morse
Date: Fri, 26 Jun 2009 18:47
46 lines
2496 bytes
I would like to change the default "l" time interval in cnfsstat from
600 to 3600 seconds. This is for my application only, and not a request
to modify the released version.

I know this is possible with the "cnfsstat -l" command,

       -l [ seconds ]
              Cnfsstat  prints a status snapshot every seconds, and only
exits if there is an error.  The default
              interval is 600 seconds.

However, to make it survive a reboot, I have <docnfsstat in inn.conf> =
‘‘true’’

Since cnfsstat is then running, the manual use of "cnfsstat -l 3600"
launches another instance.

Q. Could the default "l" time interval in cnfsstat be changed within the
script itself to make it survive a reboot?

If so, would the following be the proper place?:


    1 #! /usr/bin/perl
    2 require '/usr/lib/news/innshellvars.pl';
    3
    4 #  $Id: cnfsstat.in 7060 2004-12-19 21:36:38Z rra $
    5 #
    6 #  Copyright Andreas Lamrecht 1998
    7 #  <Andreas.Lamprect@siemens.at>
    8 #
    9 #  Modified by Kjetil T. Homme 1998, 2000
   10 #  <kjetilho@ifi.uio.no>
   11 #
   12 #  Modified by Robert R. Collier 1998
   13 #  <rob@lspace.org>
   14 #
   15 #  bigint support added by Duane Currie (sandman@hub.org) 1998
   16

---82 my($sleeptime) = (defined($opt_l) && $opt_l > 0) ? $opt_l : 600;
+++82 my($sleeptime) = (defined($opt_l) && $opt_l > 0) ? $opt_l : 3600;


-- 
John
Technical Details
Message-ID: <h2354a$i3a$1@optima7.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <h2354a$i3a$1@optima7.xanadu-bbs.net>
Subject: cnfsstat default "l" time
Date: Fri, 26 Jun 2009 13:47:38 -0500
From: "John F. Morse" <xanadu.bbs@example.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 46
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: optima7.xanadu-bbs.net 1246042058 18538 192.168.89.210 (26 Jun 2009
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Fri, 26 Jun 2009 18:47:38 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.21 (X11/20090318)
X-Enigmail-Version: 0.95.7