Este contenido no está disponible en el idioma seleccionado.

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`
Copy to Clipboard Toggle word wrap
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_namegit update-index --chmod=+x .openshift/action_hooks/file_name
Copy to Clipboard Toggle word wrap
The --chmod=(+/-)x command sets the execute permissions on the updated file specified.
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat