🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82757

Re: NNRPD - connect message in syslog

#82757
From: Julien ÉLIE
Date: Sat, 06 Feb 2010 12:24
36 lines
2589 bytes
Hi D. Stussy,

>> path is a local variable in main().  It is destroyed after being used.
>> Why would you retain it longer than needed?
>
> To delete the PID file when the process exits.  Unlink() takes a
> file-system name.

It is true that nnrpd.pid is never destroyed when nnrpd runs in daemon
mode.
But how could we handle that thing:
 * nnrpd listening on port 563, IP 91.121.26.68
 * nnrpd listening on port 563, IP 2001:41d0:1:6d44::1

that is to say two daemons listening on the same port.


No problem with innd.pid because there is only 1 possible innd running
at the same time.
Only one cnfsstat.pid and innwatch.pid too.

I see that innfeed.pid is dealt with pid-file in innfeed.conf.


But how nnrpd.pid is supposed to work?  With both the port *and the IP*
in its name?
Anyway, the file is never looked at...  If it already exists, that will
change nothing (nnrpd will complain that it cannot bind to the specified
port and IP because of innbind and not because of the pid file).

-- 
Julien ÉLIE

« -- Où vous croyez-vous ici ?
  -- Où je me trouve, je sais. » (Astérix) 
Technical Details
Message-ID: <hkjn2a$a7t$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-96-131.w90-57.abo.wanadoo.fr!not-for-mail
References: <hka2rk$3p4$1@snarked.org> <hkd0lo$opq$1@news.trigofacile.com> <hkfi18$jmq$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <hkjn2a$a7t$1@news.trigofacile.com>
Subject: Re: NNRPD - connect message in syslog
Date: Sat, 6 Feb 2010 13:24:41 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <hka2rk$3p4$1@snarked.org> <hkd0lo$opq$1@news.trigofacile.com> <hkfi18$jmq$1@snarked.org>
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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-96-131.w90-57.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 36
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Feb 2010 12:24:42 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="amontpellier-159-1-96-131.w90-57.abo.wanadoo.fr:90.57.255.131";
 logging-data="10493"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <hkfi18$jmq$1@snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005