> Dnia poniedziałek, 30 kwietnia 2012 14:19:46 Roberto De Ioris pisze: > >> I have not tested your setup, but you are using namespaces, so all of >> the >> mounted fs will disapeear in the new namespace. > > That seems logical (now), uWSGI namespace is not a simple chroot(), it > uses > linux namespace support developed mostly for paravirtualization (AFAIK) so > I > shouldn't expect that if chroot works than my app will also work. > >> I do not know if it is a viable solution, but can't you mount the >> moosefs >> from uWSGI itself using >> >> --exec-in-jail "fusemount ...." >> >> ? > > I tried that but I don't get any information in the logs that uWSGI > executed > my command and the filesystem is not mounted. strace doesn't show anything > and > I tried adding --exec-in-jail="date > /tmp/xxx" but nothing happens. > Does --exec-in-jail works for anyone? > >
Sorry, exec-in-jail run before fs-rebuilt so whatever you do will be overwritten. Use --exec-as-root, it will be triggered before privileges drop in the jail. Remember that you have no stdin, and stdout/stderr are mapped to uWSGI log. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
