Article View: news.software.nntp
Article #68625Re: INN crashes periodically without error log
From: Matthias Wach
Date: Mon, 15 Mar 2004 17:27
Date: Mon, 15 Mar 2004 17:27
55 lines
3024 bytes
3024 bytes
i searched in google and found a script. i modified the paths and named it
"innd":
#! /bin/bash
# allow core dumps
ulimit -c 100000
# save any output
exec > /usr/local/news/tmp/innd.log 2>&1
# who are we running as, anyway?
id
# show exported environment
export
# start innd (don't forget the arguments, or it will complain)
exec strace -o /usr/local/news/tmp/innd.strace -f -F
/usr/local/news/bin/innd-real "$@"
i renamed innd to innd-real, made permissions to the innd identically to
innd-real. (550)
And the result is:
[root@salimbo bin]# su news -c '/usr/local/news/bin/rc.news'
Starting innd.
inndstart: can't exec /usr/local/news/bin/innd: Exec format error
what i am doing wrong ?
"Jeffrey M. Vinocur" <jeff@litech.org> schrieb im Newsbeitrag
news:c32uq8$6lg$1@puck.litech.org...
> In article <405481d7$0$97585$a8266bb1@news.titannews.com>,
> Matthias Wach <webmaster@salimbo.com> wrote:
> >another curious thing..
> >i set "ulimit -c 100000" in the shell and it works.
> >go out and login for new and ulimit is set to 0.
>
> Yes, ulimits are per invocation of the shell. You can't set it
> in one shell and have it affect a process running separately.
>
> Perhaps the easiest thing to do rename innd to something like
> "innd-real", and create a little shell script called "innd" that
> sets the limits as you need them and then invokes "innd-real".
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org
................................................................
Posted via TITANnews - Uncensored Newsgroups Access
>>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-
Technical Details
Message-ID:
<4055e748$0$31964$a8266bb1@news.titannews.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!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!post01.iad01.newshosting.com!news.titannews.com!not-for-mailReferences:
<40544e0c$0$97651$a8266bb1@news.titannews.com> <pan.2004.03.14.14.22.03.830357@REMOVEME.stingray.net> <405481d7$0$97585$a8266bb1@news.titannews.com> <c32uq8$6lg$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <4055e748$0$31964$a8266bb1@news.titannews.com> Subject: Re: INN crashes periodically without error log Date: Mon, 15 Mar 2004 18:27:13 +0100 From: "Matthias Wach" <webmaster@salimbo.com> References: <40544e0c$0$97651$a8266bb1@news.titannews.com> <pan.2004.03.14.14.22.03.830357@REMOVEME.stingray.net> <405481d7$0$97585$a8266bb1@news.titannews.com> <c32uq8$6lg$1@puck.litech.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.mbox.zip!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!post01.iad01.newshosting.com!news.titannews.com!not-for-mail Newsgroups: news.software.nntp X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Lines: 46 Organization: TITANnews.com - http://www.titannews.com - Every UNCENSORED Newsgroup available. The #1 High-Speed Usenet Service! X-Comments: Super Retention + Best Speed. Download what YOU want @ www.TITANnews.com ! X-Complaints-To: abuse@titannews.com