0

I'm using OpenShift and I have a shell script that is executable and can be run from the command line, however cron doesn't seem to even attempt to run it.

I have placed my shell script in ~/cron/minutely

When I run: /sbin/service crond status, I get "crond is stopped" When I run: /sbin/service crond start, I get "User has insufficient privilege" I am logged in as root.

I'm stuck. Any help would be much appreciated!

2
  • Did you add the cron cartridge to your application?
    – TheSteve0
    Oct 27, 2014 at 1:57
  • Yes I did, but somehow it appears to be turned off.
    – Josh
    Oct 27, 2014 at 5:02

1 Answer 1

3

I figured it out! As it turns out, there are multiple "cron" directories - and my shell script was in the wrong location. If a file isn't in the right place, the service won't run. This is the location that worked for me:

~/app-root/runtime/repo/.openshift/cron/

This post helped: https://forums.openshift.com/daily-cron-jobs-not-getting-triggered-automatically

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .