Thread View: news.software.nntp
12 messages
12 total messages
Started by Martin Streicher
Mon, 11 Sep 2006 21:35
Processing control messages
Author: Martin Streicher
Date: Mon, 11 Sep 2006 21:35
Date: Mon, 11 Sep 2006 21:35
11 lines
1542 bytes
1542 bytes
I've been scouring the Web looking for an answer... What is the proper method for processing control messages? A cron job? A "callback" from INN each time a control message is received? Some other automated technique. Answers and/or links to answers are appreciated. M
Re: Processing control messages
Author: Russ Allbery
Date: Mon, 11 Sep 2006 21:43
Date: Mon, 11 Sep 2006 21:43
18 lines
1868 bytes
1868 bytes
Martin Streicher <martin.streicher@gmail.com> writes:
> I've been scouring the Web looking for an answer...
> What is the proper method for processing control messages? A cron job?
> A "callback" from INN each time a control message is received? Some
> other automated technique.
If you're talking specifically about INN, it does a callback. The process
responsible for authenticating control messages and determining if a
change is required is controlchan, and controlchan implements those
changes with a connection back to the innd control channel if needed.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 10:43
Date: Tue, 12 Sep 2006 10:43
21 lines
2284 bytes
2284 bytes
> > What is the proper method for processing control messages? A cron job? > > A "callback" from INN each time a control message is received? Some > > other automated technique. > > If you're talking specifically about INN, it does a callback. The process > responsible for authenticating control messages and determining if a > change is required is controlchan, and controlchan implements those > changes with a connection back to the innd control channel if needed. > Thank you for the reply. If I have 'newgroup:*:*:doit=<logfile>' in the control.conf and am not seeing new groups created when such control messages arrive, how can I debug where the process is failing? Control messages are being detected and placed in control.newgroup. At the moment, I am not signing the control messages, as it's an isolated machine. M
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 11:23
Date: Tue, 12 Sep 2006 11:23
14 lines
2082 bytes
2082 bytes
> If I have 'newgroup:*:*:doit=<logfile>' in the control.conf and am not > seeing new groups created when such control messages arrive, how can I > debug where the process is failing? Control messages are being detected > and placed in control.newgroup. At the moment, I am not signing the > control messages, as it's an isolated machine. I do see an entry in syslog that looks like this: Sep 11 21:54:54 server1 controlchan[26260]: control_newgroup, local.fly me@local.com me@local.com @0500000000040000000A0000000000000000@, not-for-mail, doit=new_group, 0
Re: Processing control messages
Author: Russ Allbery
Date: Tue, 12 Sep 2006 16:43
Date: Tue, 12 Sep 2006 16:43
18 lines
1982 bytes
1982 bytes
Martin Streicher <martin.streicher@gmail.com> writes:
> If I have 'newgroup:*:*:doit=<logfile>' in the control.conf and am not
> seeing new groups created when such control messages arrive, how can I
> debug where the process is failing? Control messages are being detected
> and placed in control.newgroup. At the moment, I am not signing the
> control messages, as it's an isolated machine.
controlchan should log, and you're seeing those logs. Beyond that, I'm
not sure. How are you checking for a new newsgroup? If you run ctlinnd
newgroup from the command line, does it then successfully create the
group?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 18:27
Date: Tue, 12 Sep 2006 18:27
14 lines
2064 bytes
2064 bytes
> controlchan should log, and you're seeing those logs. Beyond that, I'm > not sure. How are you checking for a new newsgroup? If you run ctlinnd > newgroup from the command line, does it then successfully create the > group? > Should the requested newsgroup be added to the active file immediately upon processing the control message? Or, does it require an additional step -- say, an actual posting to that newsgroup -- before it springs into existence. Yes, running ctlinnd (as root) does create the newsgroup successfully.
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 18:39
Date: Tue, 12 Sep 2006 18:39
5 lines
1700 bytes
1700 bytes
> Yes, running ctlinnd (as root) does create the newsgroup successfully. And as the user "news", just to be clear.
Re: Processing control messages
Author: Russ Allbery
Date: Tue, 12 Sep 2006 20:23
Date: Tue, 12 Sep 2006 20:23
20 lines
2134 bytes
2134 bytes
Martin Streicher <martin.streicher@gmail.com> writes:
>> controlchan should log, and you're seeing those logs. Beyond that, I'm
>> not sure. How are you checking for a new newsgroup? If you run
>> ctlinnd newgroup from the command line, does it then successfully
>> create the group?
> Should the requested newsgroup be added to the active file immediately
> upon processing the control message? Or, does it require an additional
> step -- say, an actual posting to that newsgroup -- before it springs
> into existence.
It should be added immediately. It sounds like controlchan doesn't think
that this is a valid control message for some reason.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 20:57
Date: Tue, 12 Sep 2006 20:57
10 lines
1920 bytes
1920 bytes
> It should be added immediately. It sounds like controlchan doesn't think > that this is a valid control message for some reason. > Is there a particular format for control messages? Headers that should or should not be there? A body? No body? Perhaps I am just sending a bad control message.
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 21:32
Date: Tue, 12 Sep 2006 21:32
11 lines
1999 bytes
1999 bytes
> Perhaps I am just sending a bad control message. Indeed. The "Approved: 1" header was missing. So that begs two questions: How do such things get approved unless I set the header? And, what do I need to do to create intermediate hierarchies? For example, how do I create xx, then xx.yy, then xx.yy.zz?
Re: Processing control messages
Author: Jeffrey M. Vinocur
Date: Tue, 12 Sep 2006 21:35
Date: Tue, 12 Sep 2006 21:35
23 lines
1915 bytes
1915 bytes
In article <1158096749.636775.158020@b28g2000cwb.googlegroups.com>, Martin Streicher <martin.streicher@gmail.com> wrote: > >Indeed. The "Approved: 1" header was missing. > >So that begs two questions: How do such things get approved unless I >set the header? I'm not sure what you mean. Whoever posts the control message is responsible for generating the appropriate headers. >And, what do I need to do to create intermediate hierarchies? For >example, how do I create xx, then xx.yy, then xx.yy.zz? You simply create the groups that you want. There's no real concept of hierarchies in INN; there are just groups that happen to have names that start the same way. -- Jeffrey M. Vinocur jeff@litech.org
Re: Processing control messages
Author: Martin Streicher
Date: Tue, 12 Sep 2006 22:06
Date: Tue, 12 Sep 2006 22:06
12 lines
2049 bytes
2049 bytes
> >And, what do I need to do to create intermediate hierarchies? For > >example, how do I create xx, then xx.yy, then xx.yy.zz? > > You simply create the groups that you want. There's no real > concept of hierarchies in INN; there are just groups that happen > to have names that start the same way. Right. What I was asking was how to create the directories that parallel the dot name scheme. But I see that if I simply post to the group, it makes the hierarchy on disk for me.
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