From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5f8497278a0d10bb X-Google-Attributes: gidfa528,public From: dsr@mail.lns.cornell.edu (Daniel S. Riley) Subject: Re: changing limits for user 'nobody' Date: 2000/08/25 Message-ID: #1/1 X-Deja-AN: 662448100 References: Organization: LNS, Cornell U., Ithaca, NY 14853 Newsgroups: comp.unix.tru64 Keith Bradnam writes: > Our apache web server (running on Tru64 5.0a) starts on server boot-up. [...] > One of our scripts (which sometimes needs a lot of memory, i.e. higher > than the default 'datasize' limit) occasionally fails. > > Is there a way of changing the default limits for a user such as > 'nobody'??? Two other possibilities that might be easier: 1) change the limit in the script that is failing--if it's a /bin/sh script, use the 'ulimit -d' command; for a csh script, 'limit data'. If it's not a shell script, there may be a way to change the limit in the language that it is in, or you could wrap it in a shell script that does something like #! /bin/sh ulimit -d 4242424 exec real-script "$@" 2) add a 'limit -d' command to the init.d script that starts apache. All the children will inherit the higher limit. -- Dan Riley dsr@mail.lns.cornell.edu Wilson Lab, Cornell University "History teaches us that days like this are best spent in bed"