Description of problem: See https://openshift.redhat.com/community/forums/express/restart-jboss-with-cron I was able to reproduce this by creating an app, adding cron, and a minutely job called foo.sh with: ctl_app restart In the cron log, I see: /var/lib/openshift/513245f25004468bb7000051/app-root/runtime/repo//.openshift/cron/minutely/foo.sh: line 1: ctl_app: command not found
Check this bug on INT(devenv_2886) Step: 1.create an app,and add cron-1.4 2.add a minutely job called foo.sh with ctl_app restart Result: foo.sh: line 2: ctl_app: command not found Additional info: run ctl_app restart in my app,can not get above error message. [cht-wsun3int.int.rhcloud.com cron]\> ctl_app restart [cht-wsun3int.int.rhcloud.com cron]\>
In you foo.sh script, add the line 'source /usr/bin/rhcsh' before using 'ctl_app'.