OpenVZ Forum


Home » Mailing lists » Devel » [WISH] exec early script at start
Re: [vzctl] exec early script at start [message #26221 is a reply to message #26220] Thu, 17 January 2008 16:07 Go to previous messageGo to previous message
Yoann Moulin is currently offline  Yoann Moulin
Messages: 16
Registered: December 2007
Junior Member
> I'm not very familiar with this syntaxes but I think it can be done 
> similarly :
> 
> snprintf(buf, sizeof(buf), VPS_CONF_DIR "%d.%s", veid,
>         START_PREFIX);
> if (stat_file(buf)) {
>         if (vps_exec_script(h, veid, res->fs.root, NULL, NULL,
>                 buf, NULL, 0))
>         {
>                 ret = VZ_ACTIONSCRIPT_ERROR;
>                 goto err;
>         }
> }
> 
> I'm investigate more into the code, and refresh some C knowledge to 
> understand this

it's not possible to use vps_exec_script due to the script is execute
inside the VE and the script I want to execute is here to prepare the root
environnement by removing the old dir, populate the new dir and configure
services with cfengine tools.

Yoann
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [RFC][-mm] Memory controller hierarchy support (v1)
Next Topic: To install OpenVZ in an Oracle installed system
Goto Forum:
  


Current Time: Tue Oct 07 04:10:30 GMT 2025

Total time taken to generate the page: 0.23720 seconds