🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10842

Re: ME cant remalloc...

#10842
From: Lyndon Levesley
Date: Fri, 13 Sep 1996 00:00
58 lines
2536 bytes
In article <51c1t8$fud@news.demos.su>,
Andrew A. Vasilyev <andy@snm.demos.su> wrote:
>nils mccarthy (nils@primenet.com) wrote:
>> This won't work.  Resource limits are per-process (and inherited by
>> their children), so the limit increases would only take effect
>> for the csh process, which doesn't actually execute anything.
>
>  You are right! The previous author forgot to add "Start the show":

Yep. Sorry - you need to actually start innd inside the csh. This is
what the rc.news had in it, I just left it out of the post. Duh.

 The reason I used csh the first time I did this was that I couldn't seem
to make the ulimits work under BSDi. Now we use ulimit under sol2.(4|5) and
it works fine and dandy :)

 A la FreeBSD, I imagine this was fixed up in BSDi 2 or so.

Cheers,

Lyndon.
>
>> >         /bin/csh -f <<EOF
>> >         # Let us use more open files
>> >         limit descriptors 1024
>> >         # Stop malloc errors - unlimit my max datasize
>> >         unlimit datasize
>
>      ${WHAT} ${RFLAG} ${FLAGS}
>
>> >         EOF
>> >         [ back to sh code here ]
>
>> Just use:
>>         [ sh code here ]
>>         # Let us use more open files
>>         ulimit -n 1024
>
>   Not every shell can understand all ulimits you want to change.
>   E.g., many years ago (:-)) I failed to do this using FreeBSD
>   /bin/sh, so I ought to use "csh -c 'limit xxx; limit yyy; INNDSTART'"
>   in rc.news. And Rich Salz was very engry amazing why one use csh
>   in shell script :))
>________
>	ANDY
>
>P.S. Nowdays /bin/sh works fine in FreeBSD (except the call to external
>     /bin/test, I mean "if [ ] ; then ..." is not builtin, but real /bin/[).


-- 

If you give up smoking, drinking and sex you may not actually live longer...
...It may just feel that way.
                                  Clement Freud

Technical Details
Message-ID: <51c46u$fuo@diamond.xara.net>
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!not-for-mail
References: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com> <51c1t8$fud@news.demos.su>

Show Full Headers
Complete Article Headers
Message-ID: <51c46u$fuo@diamond.xara.net>
Subject: Re: ME cant remalloc...
Date: Fri, 13 Sep 1996 00:00:00 +0000
From: "Lyndon Levesley" <lyndon@xara.net>
References: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com> <51c1t8$fud@news.demos.su>
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!not-for-mail
X-Deja-AN: 180408699
Sender: lol@news.xara.net
Organization: Xara Networks Ltd
Newsgroups: news.software.nntp