Page tree
Skip to end of metadata
Go to start of metadata


SolusVM has several hook points that allow you to run your own scripts at certain stages of specific actions. Most of the hook scripts have variables directly passed to them.

Each hook has already been created on either the master or the slave server and are named in a specific way. When a hook is not being used, it will be prefixed with -example.

i.e:

openvz_reboot_pre.php-example
openvz_reboot_post.php-example

To use a hook you need to remove the -example prefix.

i.e:

openvz_reboot_pre.php
openvz_reboot_post.php

Inside the hook script, the top section of code must not be removed or the available variables will not be passed to it.

  • No labels