Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: dsr@mail.lns.cornell.edu (Daniel S. Riley)
Subject: Re: changing limits for user 'nobody'
Date: 2000/08/25	[thread overview]
Message-ID: <shaee1kz4r.fsf@lns130.lns.cornell.edu> (raw)
In-Reply-To: Pine.SOL.3.96.1000825170927.1759E-100000@thale

Keith Bradnam <keith@thale.nott.ac.uk> 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      <URL:http://www.lns.cornell.edu/~dsr/>
    "History teaches us that days like this are best spent in bed"



      parent reply	other threads:[~2000-08-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-25  4:00 changing limits for user 'nobody' Keith Bradnam
2000-08-25  4:00 ` Adam Price
2000-08-25  4:00 ` Daniel S. Riley [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox