此内容没有您所选择的语言版本。

13.4.2. Cartridge Action Hooks


Cartridge action hooks are used by creating a file in the App_Name/.openshift/action_hooks directory with the same name as the desired event.
Use the following list for a reference to all possible action hooks associated with a cartridge control action.
Expand
Table 13.2. Cartridge Action Hooks
Action Description Event-specific examples
Start Start the software the cartridge controls. pre_start_Cart_Name, post_start_Cart_Name
Stop Stop the software the cartridge controls. pre_stop_Cart_Name, post_stop_Cart_Name
Reload The cartridge and the package software will re-read the configuration information. pre_reload_Cart_Name, post_reload_Cart_Name
Restart Current cartridge process is stopped and started again. pre_restart_Cart_Name, post_restart_Cart_Name
Tidy All unused resources are released. pre_tidy_Cart_Name, post_tidy_Cart_Name
Cart_Name is a replaceable term used to represent the cartridge short-name. For example, for a JBossAS cartridge to be implemented during the pre-start process, create the file App_Name/.openshift/action_hooks/pre_start_jbossas, edit it and add the desired information.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat