[Users] post-start and stop scripts

Thorsten Schifferdecker tsd at debian.systs.org
Wed Jan 9 07:07:49 EST 2008


Hello Jakob,

please read the OpenVZ User Guide, at page 88 "OpenVZ Action Scripts".

Bye,
 Thorsten

Am Mi, 9.01.2008, 11:55, schrieb Jakob Goldbach:
> Hi,
>
> I've seached the docs in vain on executing scripts on start or stop of
> the VE.
>
> I'm doing a bind mount on the HN to the mounted VE
> ($VZROOT/root/101/mnt/..)  as descriped in
> http://wiki.openvz.org/Mounting_filesystems.
>
> I want to automate this during start and stop of the VE.
>
> Ideally the start script should run after the VPS is mounted but before
> it is started. Likewise during stop - an umount after the VPS has
> stopped but before it is umounted.
>
> Is this possible ?
>
> /Jakob
>
> # vzctl start 222
> Starting VPS ...
> VPS is mounted
> --> start hook here <---
> Adding IP address(es): 172.16.4.9
> Setting CPU units: 1000
> Set hostname: test1
> VPS start in progress...
>
>
> # vzctl stop 222
> Stopping VPS ...
> VPS was stopped
> --> stop hook here <--
> VPS is unmounted
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>


-- 
Thorsten Schifferdecker
email ts at systs.org
phone +49 (0) 911 50 63 69 82



More information about the Users mailing list