🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Peter Augustin Thu, 12 Mar 1998 00:00
Deleting control.cancel
#26792
Author: Peter Augustin
Date: Thu, 12 Mar 1998 00:00
22 lines
1162 bytes
Hi!

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?

-- 

          Realname: Peter Augustin            EMail: acp@inode.at
          Homepage: http://www.inode.at/acp/    IRC: ACP #inode

Re: Deleting control.cancel
#26777
Author: Yar Tikhiy
Date: Thu, 12 Mar 1998 00:00
30 lines
1601 bytes
Peter Augustin wrote:

PA> I use in root's crontab:

PA> mv /var/news/spool/articles/control/cancel
PA> /var/news/spool/articles/control/cancel.old && rm -rf
PA> /var/news/spool/articles/control/cancel.old/

PA> But I experience that about each 2 days inn shuts down without any error
PA> message, except mails from cron to root stating:

PA> mv: /var/news/spool/articles/control/cancel: No such file or directory

PA> How can I remove control.cancel correctly?

I'd suggest creating control.cancel after mv, because inn would not
create it itself (note, that subdirs in control/ are magic) 
We use that for years:

2 * * * * /bin/mv /var/news/spool/articles/control/cancel /var/news/spool/articles/control/cancel.0; /bin/mkdir /var/news/spool/articles/control/cancel; /bin/rm -rf /var/news/spool/articles/control/cancel.0

You'll receive "mkdir: /var/news/spool/articles/control/cancel: File exists"
sometimes, but is seems quite harmless.

Any further suggestions?

SY, Yar

Re: Deleting control.cancel
#26803
Author: 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/

Re: Deleting control.cancel
#26817
Author: Peter Augustin
Date: Thu, 12 Mar 1998 00:00
21 lines
1456 bytes
C
> 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.

You are right, I noticed it myself after the Posting...

There is still the question why inn disappears without any
logfile-entry?

-- 

          Realname: Peter Augustin            EMail: acp@inode.at
          Homepage: http://www.inode.at/acp/    IRC: ACP #inode

Re: Deleting control.cancel
#26827
Author: Karsten Thygesen
Date: Fri, 13 Mar 1998 00:00
26 lines
1497 bytes
>>>>> "Peter" == Peter Augustin <acp@inode.at> writes:

Peter> How can I remove control.cancel correctly?

I have this in news's crontab:

30 * * * * /pack/findutils/bin/gfind /tmp/cancel -type f -cmin +60 -print|xarg\
s rm

~news/spool/articles/control/cancel is a link to /tmp/cancel due to
performance reasons (/tmp is swap on Solaris), but the same method
would work in the usual spool area. I create the /tmp/cancel directory 
when I launch the news system.

gfind is GNU's find.

Karsten

-- 
M.Sc.E.E, Sys/Net-administrator, BOFH, Aalborg University, Denmark
http://www.kom.auc.dk/~karthy/ for more information.
SunSITE Denmark Manager (http://sunsite.auc.dk/)
# $Id: .signature,v 1.1 1997/06/18 08:30:00 karthy Exp $

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads