🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32999

history file on another file system

#32999
From: Sven-Ingvar Jonsson
Date: Wed, 18 Nov 1998 00:00
39 lines
2010 bytes
We are using  INN 1.5.1  and have problem with disk space for the history
files. So I we tried to move the history files to another file system and
make symbolic links from  /usr/local/news

We read in a README file that we have to define:

EXPDIR="/the/new/directory"

in news.daily  and this works, but only for  _one_  run of news.daily,
after that the expired history files are back in /usr/local/news !

We then modified the three "mv" commands after the "Actual expire"
paragraph in news.daily:

        mv -f  ${HISTORY} ${HISTORY}.old
        mv -f  ${HISTORY}.dir ${HISTORY}.dir.old
        mv -f  ${HISTORY}.pag ${HISTORY}.pag.old
        mv -f ${EXPDIR}/history.n ${EXPDIR}/history
        mv -f ${EXPDIR}/history.n.dir ${EXPDIR}/history.dir
        mv -f ${EXPDIR}/history.n.pag ${EXPDIR}/history.pag
        rm -f ${EXPDIR}/history.n.done
        ln -s ${EXPDIR}/history ${HISTORY}
        ln -s ${EXPDIR}/history.dir ${HISTORY}.dir
        ln -s ${EXPDIR}/history.pag ${HISTORY}.pag

This works to some extent, but after news.daily is completed innd is still
paused.  Also, fastrm reports "No files to remove" and "Renumbering active
file" complains about innd being "Already paused" for "Wrong reason".

Is there a better way to do this?

Thanks in advance,
Sven Ingvar

--
Sven Ingvar Jonsson			|  E-mail:  sijon@lin.foa.se
FOA, Linkoping, Sweden			|

Technical Details
Message-ID: <72u204$9vt$1@mercur.foa.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <72u204$9vt$1@mercur.foa.se>
Subject: history file on another file system
Date: Wed, 18 Nov 1998 00:00:00 +0000
From: sijon@lin.foa.se (Sven-Ingvar Jonsson)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 413084892
Distribution: inet
Summary: Problem with history file on another file system
Organization: National Defence Research Establishment, Sweden
Newsgroups: news.software.nntp