Introduction

The following is a guide to using Cron in an OpenShift application.

OpenShift gives a simple out of the box solution to setup Cron using existing bash scripts.

Requirements

The following are required before reading the rest of this guide.

  • OpenShift account
  • OpenShift application installed
  • Git
  • SSH access

Setup

1. Run the following from the command-line to install Cron.

rhc cartridge add cron -a APP_NAME

NOTE: APP_NAME is the name of the application.

2. After installation, something similar to the following should be displayed to indicate that Cron has been installed successfully.

OpenShift Cron Installation Successful

3. Clone the application onto