X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pct.adoc;fp=pct.adoc;h=b5b5af30a75305521df984b048ef2cd9ed54f656;hp=9fa6a3822974fefd7dba1b32cd45b292e3dc71bd;hb=c2c8eb89d18ca2482319eb9d1584c91dc07c0d24;hpb=1a58a3c916b30d5efe3cc2e4f79d4abcbda2ed44 diff --git a/pct.adoc b/pct.adoc index 9fa6a38..b5b5af3 100644 --- a/pct.adoc +++ b/pct.adoc @@ -590,6 +590,16 @@ start after those where the parameter is set, and this parameter only makes sense between the machines running locally on a host, and not cluster-wide. +Hookscripts +~~~~~~~~~~~ + +You can add a hook script to CTs with the config property `hookscript`. + + pct set 100 -hookscript local:snippets/hookscript.pl + +It will be called during various phases of the guests lifetime. +For an example and documentation see the example script under +`/usr/share/pve-docs/examples/guest-example-hookscript.pl`. Backup and Restore ------------------