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.
To use a hook you need to remove the -example prefix.
Inside the hook script, the top section of code must not be removed or the available variables will not be passed to it.