On Wed, Aug 3, 2016 at 12:54 PM, <[email protected]> wrote:

> Hi Team ,
> I'm trying to port a Java Project to OSv.
> PFB some doubts,
> how can I pre create a directory structure in OSv, before starting my OSv
> App, so that the App can use this directory for storing data and writing
> logs. ?
>

Sounds like all you need to do is to create an empty directory, and OSv
will write to it (the question is how you'll get the logs out of there is a
separate question :-)).
To create this empty directory, if you're using capstan, I guess all you
need to do is to create an empty directory in the capstan directory.
Someone more versed than me in Capstan can probably give abetter answer
here.


> If I'm using slf4j for application logging purpose then how can it be
> written on OSv file system. ?
>

Wouldn't this work just the same as in Linux?

How to create a user in OSv for my java application to run other than
> default osv user. ?
>

You can't, and shouldn't. The whole point of OSv is to run a single
application. The entire application runs in the same memory space, and it
makes little sense to divide the different threads into separate "users".

For this reason OSv doesn't support setuid(n) for n!=0.

On files, we do support different userids, but what exactly that should do
is unclear (see https://github.com/cloudius-systems/osv/issues/593).

Nadav.

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to