Bug 234504 - cron(8) manual content error
Summary: cron(8) manual content error
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-30 16:33 UTC by Joe Barbish
Modified: 2026-01-28 05:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Barbish 2018-12-30 16:33:27 UTC
The last sentence of the second paragraph under the Description heading of cron(8)says.

"The cron utility also searches for /etc/crontab and files in /etc/cron.d and /usr/local/etc/cron.d which are in a different format (see crontab(5))."

On review of crontab(5) there is no mention of a "different" format for those 2 paths, IE: /etc/cron.d and /usr/local/etc/cron.d

I think the second paragraph needs to be rewritten to clarify to the reader exactly what the cron utility is expecting as a control file.

The following is my draft of what it should say.


The cron utility uses a file formatted as defined by crontab(5) to control it's actions. The host system default is /etc/crontab which should not be changed. Additional crontab(5) defined files with unique file names may be placed in /etc/cron.d or /usr/local/etc/cron.d also /var/cron/tabs may contain files named after accounts in the /etc/passwd file as documented in crontab(1). File content read from these path locations are merged together and loaded into memory for use by the cron utility.
Comment 1 Joe Barbish 2018-12-30 22:47:01 UTC
After reading what I posted I see I was not very clear about what needed to be changed. 

Only the second paragraph under the Description heading of cron(8) needs to be replaced with the following paragraph content.

The cron utility uses a file formatted as defined by crontab(5) to control it's actions. The host system default is /etc/crontab which should not be changed. Additional crontab(5) defined files with unique file names may be manually placed in the /etc/cron.d or /usr/local/etc/cron.d directories. Also the /var/cron/tabs directory may contain crontab(5) defined files named after accounts in the /etc/passwd file as documented in crontab(1). File content read from these directory locations are merged together and loaded into memory for use by the cron utility. Issuing the "service cron restart" command from the root host console will refresh the cron utility's in memory controls.
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-01-21 06:34:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=53d6b23765ca27ac7eca4096b2a83e84631c4ec8

commit 53d6b23765ca27ac7eca4096b2a83e84631c4ec8
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-01-21 06:28:39 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-01-21 06:33:48 +0000

    cron.8: clarify system crontab format

    PR:             234504
    MFC after:      1 week

 usr.sbin/cron/cron/cron.8 | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-01-28 05:55:54 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d2fb6b8f80cc63df05be433bed8990f79a6e2fd2

commit d2fb6b8f80cc63df05be433bed8990f79a6e2fd2
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-01-21 06:28:39 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-01-28 05:54:14 +0000

    cron.8: clarify system crontab format

    PR:             234504

    (cherry picked from commit 53d6b23765ca27ac7eca4096b2a83e84631c4ec8)

 usr.sbin/cron/cron/cron.8 | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-01-28 05:55:55 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=300a68afe0947923ef0f09ff46a5d572e4ec86b2

commit 300a68afe0947923ef0f09ff46a5d572e4ec86b2
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-01-21 06:28:39 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-01-28 05:54:34 +0000

    cron.8: clarify system crontab format

    PR:             234504

    (cherry picked from commit 53d6b23765ca27ac7eca4096b2a83e84631c4ec8)

 usr.sbin/cron/cron/cron.8 | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)