13.4. Action Hooks

13.4.1. Introduction to Action Hooks

Various entry points, referred to as action hooks, are available to modify certain processes during an application's life cycle, and are specifically used to interact with cartridges. These action hooks are located in the App_Name/.openshift/action_hooks directory.
During a process that supports an action hook, the application action hook directory is checked for an executable file matching the specified name. If it is found, the file is executed before control is returned to the normal process. There are no specific implementation requirements on action hooks other than that they be executable files. The action hook scripts are directly executed by OpenShift Online.