Show Table of Contents
5.2. Action Hooks
The
$cartridge_name/template/.openshift/action_hooks/ directory contains examples of application developer action hooks that run during the cartridge life cycle.
Example 5.3. Action Hooks
pre_start_`cartridge name` post_start_`cartridge name` pre_stop_`cartridge name`
OpenShift Enterprise runs default
action_hooks as indicated in the control script. To add additional hooks, run them explicitly in the control script. Ensure appropriate documentation is available for application developers to use the additional hooks correctly.
If you find that action hooks are not working, they may not be executable. To fix this, run the following command:
$ git update-index --chmod=+x .openshift/action_hooks/file_name
The --chmod=(+/-)x command sets the execute permissions on the updated file specified.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.