Bug 917294
Summary: | Can't call "ctl_app" from a cron job. Getting "command not found" | ||
---|---|---|---|
Product: | OKD | Reporter: | Nam Duong <nduong> |
Component: | Containers | Assignee: | Jhon Honce <jhonce> |
Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | jofernan, wsun |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-04 16:49:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nam Duong
2013-03-02 18:49:29 UTC
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'. |