The following is a table of Bundle hooks. A bundle hook is simply a script inside a bundle's "actions" directory executed in response to a BundleWorks command. For UNIX-based and Linux systems, these hooks are shell scripts with an extension of .sh (e.g., install.sh). For Windows-based systems, these hooks are batch scripts with an extension of .bat (e.g., install.bat).
Note that a bundle does not have to implement all hooks.
Table 4.3. Bundle Hooks
| setup | Executed during bw add |
| teardown | Executed during bw remove |
| install | Executed during bw deploy if first deploy |
| upgrade | Executed during bw deploy if older version found |
| rollback | Executed during bw deploy if newer version found |
| uninstall | Executed during bw undeploy |
| load | Executed during use |
| unload | Executed during use to unload a previously loaded bundle |
| hourly | Executed during bw taskrun hourly |
| daily | Executed during bw taskrun daily |
| weekly | Executed during bw taskrun weekly |
| start | Executed during a start command |
| run | Executed during a run command |
| stop | Executed during a stop command |
| kill | Executed during a kill command |
| status | Executed during a status command |
| {other} | Custom commands can be defined for bundles. Executed by name. |