Is it possible to restart an OpenShift gear using rhc?
Environment
- Red Hat OpenShift
Issue
- How can i restart my gears using the rhc tools?
Resolution
The rhc command has the ability to restart an application:
# rhc app restart <app_name>
It can also restart a cartridge for a specified application:
# rhc cartridge restart <cartridge> --app <app_name>
However it doesn't currently support the ability to restart a specific gear.
Also note that you can get a list of all of your applications and the cartridges they're using with the following command:
# rhc apps
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
