Skip to content

Instantly share code, notes, and snippets.

@sicksand
Created April 16, 2013 02:57
Show Gist options
  • Save sicksand/5393015 to your computer and use it in GitHub Desktop.
Save sicksand/5393015 to your computer and use it in GitHub Desktop.
Place this bash script on your cron daily (yourapp/.openshift/cron/daily/restartdaily.sh) for a daily restart of your OpenShift's app
#!/bin/bash
set -e
ctl_all stop
sleep 2
ctl_all start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment