Using Script Hooks

In addition to virtDomain.sh, you can take advantage of script hooks to customize Parallels Pro Control Panel domains. Script hooks allow you to add custom scripts to augment the functionality of a script as desired. For example, when you modify a site, you can add a custom script that enables you to notify the Site Administrator of the change. If you deploy a centralized DNS server for various servers, you can use script hooks to notify the central DNS server of any updates. The scripts must be located at /etc/appliance/customization.

On the command line the scripts receive site<n>, where <n> uniquely identifies the site, as the argument. For example, you can write scripts to send custom notifications or log details of an event.