Article View: news.software.nntp
Article #74479Re: inn2-ssl and lots of idle connections
From: Iulius
Date: Mon, 30 Oct 2006 09:50
Date: Mon, 30 Oct 2006 09:50
35 lines
2236 bytes
2236 bytes
En réponse à Russ Allbery :
> Anyway, here's a script that comes in handy for all sorts of things like
> this. Will only work on systems that support SysV ps syntax (Linux
> included).
Thanks a lot.
I for one use:
%%%%%%%%%%%%%%%%%%%%
#!/bin/sh
for pid in `ps faux | grep "nnrpd-ssl: connected" | awk '{ print $2; }'`
do
kill $pid
done
%%%%%%%%%%%%%%%%%%%%
Put in my cron.daily (nobody is connected to my local news server at the
time when the cron.daily is executed: 6:25).
> okill - Kill processes that have exceed certain limits
> B<okill> [B<--etime> I<minutes>] [B<-np>] [B<-s> I<signal>] <process name>
Do you really use that for killing nnrpd-ssl connections?
Because if I do that, it also kills the nnrpd daemon « nnrpd-ssl: accepting
connections »!
Thus, it kills everything...
--
Iulius
« -- C'est quoi la vesperna ?
-- C'est du latin de cuisine imbécile ! » (Astérix)
Technical Details
Message-ID:
<ei4hte$hi4$1@guepard.ecp.fr>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.n-ix.net!news2.arglkargh.de!news.ecp.fr!not-for-mailReferences:
<eh657r$knl$1@guepard.ecp.fr> <eh74i8$inj$4@puck.litech.org> <87pscj9gmo.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <ei4hte$hi4$1@guepard.ecp.fr> Subject: Re: inn2-ssl and lots of idle connections Date: Mon, 30 Oct 2006 10:50:37 +0100 From: Iulius <iulius@nom-de-mon-site.com.invalid> References: <eh657r$knl$1@guepard.ecp.fr> <eh74i8$inj$4@puck.litech.org> <87pscj9gmo.fsf@windlord.stanford.edu> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.n-ix.net!news2.arglkargh.de!news.ecp.fr!not-for-mail Newsgroups: news.software.nntp Organization: Gens Iulia -- http://www.trigofacile.com/ Lines: 35 NNTP-Posting-Host: amontpellier-157-1-20-66.w86-200.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: guepard.ecp.fr 1162201838 17988 86.200.181.66 (30 Oct 2006 09:50:38 GMT) X-Complaints-To: ingesys@cti.ecp.fr NNTP-Posting-Date: Mon, 30 Oct 2006 09:50:38 +0000 (UTC) User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <87pscj9gmo.fsf@windlord.stanford.edu>