Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 887859

Summary: Incorrect example in anacrontab manpage
Product: Red Hat Enterprise Linux 6 Reporter: Branislav Náter <bnater>
Component: cronieAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 6.5CC: azelinka, jprokes
Target Milestone: rcKeywords: ManPageChange
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cronie-1.4.4-9.el6 Doc Type: Bug Fix
Doc Text:
Cause: Anacrontab man page has incorrect example (missing 5 where should be 5 minutes for the delay). Consequence: User might be confused how to set up anacron table. Fix: 5 is there. Result: User knows how to set up anacrontab perfectly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 22:24:29 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 Branislav Náter 2012-12-17 13:41:31 UTC
Description of problem:
Example in anacrontab doesn't have set "delay" for daily jobs, but it's mentioned in comment above. See bellow.

Version-Release number of selected component (if applicable):
cronie-1.4.4-7.el6

Steps to Reproduce:
1. man anacrontab
2. go to EXAMPLE section
  
Actual results:
RANDOM_DELAY=30
# Anacron jobs will start between 6 and 8 o’clock.
START_HOURS_RANGE=6-8
# delay will be 5 minutes + RANDOM_DELAY for cron.daily
1         0    cron.daily          nice run-parts /etc/cron.daily
7         0    cron.weekly         nice run-parts /etc/cron.weekly

Expected results: (delay is set to 5 minutes for cron.daily)
RANDOM_DELAY=30
# Anacron jobs will start between 6 and 8 o’clock.
START_HOURS_RANGE=6-8
# delay will be 5 minutes + RANDOM_DELAY for cron.daily
1         5    cron.daily          nice run-parts /etc/cron.daily
7         0    cron.weekly         nice run-parts /etc/cron.weekly

Comment 2 Jakub Prokes 2013-09-25 11:01:18 UTC
[root@ibm-p730-04-lp4 ~]# rpm -q cronie-anacron && man -P cat anacrontab | iconv -f utf-8 -t ASCII -c | grep -A 17 EX
cronie-anacron-1.4.4-7.el6.ppc64
EXAMPLE
       This example shows how to set up the behaviour similar to previous set-
       ting  in  /etc/crontab  which  will start all regular jobs only between
       6:00 and 8:00. There is added RANDOM_DELAY which will be  maximally  30
       minutes.  Jobs  will  be  running in queue. After one finish, then next
       will start.

       # environment variables
       SHELL=/bin/sh
       PATH=/sbin:/bin:/usr/sbin:/usr/bin
       MAILTO=root
       RANDOM_DELAY=30
       # Anacron jobs will start between 6 and 8 oclock.
       START_HOURS_RANGE=6-8
       # delay will be 5 minutes + RANDOM_DELAY for cron.daily
       1         0    cron.daily          nice run-parts /etc/cron.daily
       7         0    cron.weekly         nice run-parts /etc/cron.weekly
       @monthly  0    cron.monthly

[root@ibm-p730-02-lp2 ~]# rpm -q cronie-anacron && man -P cat anacrontab | iconv -f utf-8 -t ASCII -c | grep -A 17 EX
cronie-anacron-1.4.4-12.el6.ppc64
EXAMPLE
       This example shows how to set up the behaviour similar to previous set-
       ting  in  /etc/crontab  which  will start all regular jobs only between
       6:00 and 8:00. There is added RANDOM_DELAY which will be  maximally  30
       minutes.  Jobs  will  be  running in queue. After one finish, then next
       will start.

       # environment variables
       SHELL=/bin/sh
       PATH=/sbin:/bin:/usr/sbin:/usr/bin
       MAILTO=root
       RANDOM_DELAY=30
       # Anacron jobs will start between 6 and 8 oclock.
       START_HOURS_RANGE=6-8
       # delay will be 5 minutes + RANDOM_DELAY for cron.daily
       1         5    cron.daily          nice run-parts /etc/cron.daily
       7         0    cron.weekly         nice run-parts /etc/cron.weekly
       @monthly  0    cron.monthly        nice run-parts /etc/cron.monthly

Comment 3 errata-xmlrpc 2013-11-21 22:24:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1681.html