Perfect, thank you!

On Fri, Jul 8, 2011 at 9:46 PM, Roberto De Ioris <[email protected]> wrote:

>
> > Hi Roberto,
> >
> > Wonder if you might be able to give me some advice..
> >
> > Is there is a way to limit the address space of any other binary,
> > without relying on /etc/security/limits.conf??
> >
> > For example, is it possible to do something like this:
> >
> > ./magic-here --limit-as=256M -- /usr/sbin/some-legacy-binary-here
> >
> > ^^ that would then wrap the binary, enforcing a maximum address space of
> > 256M.
> >
> > As you gave the option --limit-as to uwsgi, which can apply to any
> > python webapp, I was wondering if it's possible for us to do the same,
> > but without compiling the original binary into uwsgi.
> >
> > Let me know if the above doesn't make any sense lol.
> >
> > Cal
> >
>
>
> you can use the --worker-exec option.
>
> This is used to run php-fastcgi (or other software requiring specific
> environment) under the uWSGI environment
>
> uwsgi --limit-as 256 --worker-exec /bin/ls
>
> As others have already said to you, remember that limits set by a parent
> are inherited by all of the children. So running apps via fork+exec or via
> attach-daemon in uWSGI will set their limit automatically.
>
> --
> Roberto De Ioris
> http://unbit.it
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to