Article View: news.software.nntp
Article #10939Re: ME cant remalloc...
From: Lyndon.Levesley
Date: Tue, 17 Sep 1996 00:00
Date: Tue, 17 Sep 1996 00:00
62 lines
2522 bytes
2522 bytes
In article <51fk33$1kd@stdismas.bogon.com>,
John Henders <jhenders@bogon.com> wrote:
>In <51bkhe$8vs@nnrp1.news.primenet.com> nils mccarthy <nils@primenet.com> writes:
>
>>Lyndon Levesley <lyndon@xara.net> wrote:
>
>>Just use:
>
>> [ sh code here ]
>> # Let us use more open files
>> ulimit -n 1024
>
>Except /bin/sh supplied with BSDI doesn't understand ulimit, or it
>didn't. What I did, with no ill effects, was change the /bin/sh line in
>rc.news to /bin/bash. However, this also means you would need a
>/bin/bash, which isn't where BSDI put's it, so you could use
>/usr/contrib/bin/bash. I suppose you could also use a csh wrapper that
>set the limits then exec's rc.news into it's own space. (does csh
>support that?)
>
(see my other post)
I had the same aggro w/ BSDi , so used the "/bin/csh -f <<EOF"
hack to workaround it. In my first post I left out the line
that actually starts news up. You could, however, use a csh
wrapper for the whole of rc.news
#!/bin/csh
# Set some limits and then start up rc.news
# which will inherit them
# This is 'limit openfiles 1024' under some OS types
limit descriptors 1024
# And stop mem probs
unlimit datasize
# Now start rc.news, leaving the csh as we do so.
exec /my/path/to/news/etc/rc.news
which would work, it depends which hack you like better - I prefer
the inline csh inside rc.news, but that's mainly personal preference :)
>--
> Artificial Intelligence stands no chance against Natural Stupidity.
> GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
> b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*
>
Indeed. :)
Cheers,
Lyndon Levesley
Xara Networks
--
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:
<51mmne$iat@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-mailReferences:
<51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com> <51fk33$1kd@stdismas.bogon.com>Show Full Headers
Complete Article Headers
Message-ID: <51mmne$iat@diamond.xara.net> Subject: Re: ME cant remalloc... Date: Tue, 17 Sep 1996 00:00:00 +0000 From: lol@news.xara.net (Lyndon.Levesley) References: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com> <51fk33$1kd@stdismas.bogon.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!not-for-mail X-Deja-AN: 181313894 Organization: Xara Networks Ltd Newsgroups: news.software.nntp