>> >> rvm use 1.8.7 >> python uwsgiconfig --plugins plusing/rack default rack187 >> rvm use 1.8.6 >> python uwsgiconfig --plugins plusing/rack default rack186 >> rvm use 1.9.2 >> python uwsgiconfig --plugins plusing/rack default rack192 >> > > This will work with namespace options only if rvm is available inside > chroot and have exact same version of ruby compiled, right?
yes > Are plugins > loaded before chrooting? yes, but remember that you could need plugins (as well as the uWSGI binary) if you plan to reload uWSGI from the jail itself (from the second run, uWSGI will be searched in the jail) > If I compile plugin for given ruby version inside > chroot and them copy it outside of the chroot, into /usr/lib/uwsgi, and > then use namespace=<chroot with rvm> and plugins-dir=/usr/lib/uwsgi, will > it work? you do not need to copy them, why not abusing new plugins-dir option ?: [uwsgi] ; on the first run, load from the rootfs of the jail plugins-dir = /jail011/usr/lib/uwsgi ; from the second run it will fallback to that plugins-dir = /usr/lib/uwsgi plugins = rack187 ... I won't have linked libruby to load outside of the chroot, so it > will work only if uwsgi is loading plugins after jailing, which I doubt: > 1. I don't have uwsgi inside the chroot, so what would be loaded > 2. chrooting probably means calling chroot on running process early when > it > starts or something like this > So I guess that using namespace and rvm means that I need to have rvm > installed twice (or hardlinked but that cripples chroot security), and > also > have proper ruby version compiled twice. That doesn't sound easy to me, so > if anyone is going to use namespace and multiple ruby versions* You better > make yourself a deb/rpm package so that You are sure that there > is exactly the same ruby in chroot and on the backend system outside of > the > chroot. again, another trick using rvm-path [uwsgi] ; check for rvm in the jail rvm-path = /jail001/usr/local/rvm ; ...and check in the jail itself rvm-path = /usr/local/rvm >> * Minor fixes >> >> ConfigLogic has been improved for negative functions, check the doc on >> http://projects.unbit.it/uwsgi/wiki/ConfigLogic >> >> Any chance for having also "else" and "else-if" keywords? > > maybe in the future ;) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
