Bug 500694
Summary: | cronie don't use environment from /etc/crontab | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Remi Collet <fedora> |
Component: | anacron | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | mmaslano, pertusus, tmraz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-05-15 12:01:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Remi Collet
2009-05-13 17:54:37 UTC
I suppose that you're editing either user's crontab with crontab -e or some crontab in /etc/cron.d/ directory. Each crontab is individual and the environment variables specified in that crontab apply only to that crontab. No, it's a /etc/cron.hourly script (provided by ocsinventory-agent rpm, which need /sbin in path). Where is defined the defaut environment for it ? - Previously, hourly task where launch by "run-parts" in /etc/crontab, so use the env. defined there - It seems it is now launched by /etc/cron.d/0hourly where there is no env. defined This seems to explain the difference between F10/F11 which can be consider as a "regresion". I don't have done any test for daily/monthly script, but it could be a solution to add same env. in /etc/cron.d/0hourly that in /etc/crontab to keep same behaviour than in previous release. Regards Yes, that's a good idea. The cron man page will be updated and cron jobs in anacron package has environment values now. anacron-2.3-75.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/anacron-2.3-75.fc11 anacron-2.3-75.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |