2011/11/10 Tommy <thfbjhkh...@gmail.com>

>
> I think I didn't describe my question clearly
>

<snip>


>  what i want to do is :
>     1.create the container
>     2.start the app in the container
>
> this will act as a process virtual machine
>

1. vzctl start <container_id>
2. vzctl exec <container_id> <executable>

Where <executable> can be either an application or a script that will a)
run the application, b) detach from the shell. The <executable> has to be
present inside the container.

Another (possibly simpler) way is to simply have the executable be started
by one of your startup scripts. That way you wouldn't even have to worry
about detaching from the shell.

Roberto
_______________________________________________
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users

Reply via email to