🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26803

Re: Deleting control.cancel

#26803
From: Curt Welch
Date: Thu, 12 Mar 1998 00:00
38 lines
2183 bytes
Peter Augustin <acp@inode.at> wrote:
> I use in root's crontab:
>
> mv /var/news/spool/articles/control/cancel
> /var/news/spool/articles/control/cancel.old && rm -rf
> /var/news/spool/articles/control/cancel.old/
>
> But I experience that about each 2 days inn shuts down without any error
> message, except mails from cron to root stating:
>
> mv: /var/news/spool/articles/control/cancel: No such file or directory
>
> How can I remove control.cancel correctly?

It sounds to me like the mail is comming from your cron run after inn shuts
down because if inn isn't running, then the control.cancel directory isn't
being re-created.  And if it's not created before the next cron job is
run, the move will bomb - and send you e-mail.  That sounds normal.  As
has been previouslly suggested, you could try to recreate the dir after
the move.  But that will bomb (i.e. produce an error message and
e-mail)sometimes when inn beats you to it.

Your inn shutdown problem is probably not related to your cron job.

In my cron job, I don't even bother to move the directory.  I just
do:

rm -rf /var/news/spool/articles/control/cancel

If you do that, you won't get the e-mails anymore.  rm -f doesn't produce
an error message if the directory doesn't exist.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <19980312105712.173$B8@newsreader.com>
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
References: <35076EAB.A5812FF1@inode.at>

Show Full Headers
Complete Article Headers
Message-ID: <19980312105712.173$B8@newsreader.com>
Subject: Re: Deleting control.cancel
Date: Thu, 12 Mar 1998 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <35076EAB.A5812FF1@inode.at>
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: 333359717
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: KCW Consulting
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp