2011/11/10 Tommy <span dir="ltr">&lt;<a href="mailto:thfbjhkhtdx@gmail.com">thfbjhkhtdx@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><br>
    I think I didn&#39;t describe my question clearly<br></div></blockquote><div> </div><div>&lt;snip&gt;</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div bgcolor="#FFFFFF" text="#000000">
    what i want to do is :<br>
        1.create the container<br>
        2.start the app in the container<br>
    <br>
    this will act as a process virtual machine<br></div></blockquote><div><br></div><div>1. vzctl start &lt;container_id&gt;</div><div>2. vzctl exec &lt;container_id&gt; &lt;executable&gt;</div><div><br></div><div>Where &lt;executable&gt; can be either an application or a script that will a) run the application, b) detach from the shell. The &lt;executable&gt; has to be present inside the container.</div>

<div><br></div><div>Another (possibly simpler) way is to simply have the executable be started by one of your startup scripts. That way you wouldn&#39;t even have to worry about detaching from the shell.</div><div><br></div>

<div>Roberto</div></div>