Este conteúdo não está disponível no idioma selecionado.

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.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat