Page MenuHomeFreeBSD

Add "cron -n".
ClosedPublic

Authored by trasz on Aug 19 2016, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 3, 11:19 PM
Unknown Object (File)
Sun, Mar 30, 5:59 PM
Unknown Object (File)
Mar 4 2025, 5:39 AM
Unknown Object (File)
Mar 4 2025, 2:42 AM
Unknown Object (File)
Mar 3 2025, 8:00 PM
Unknown Object (File)
Mar 1 2025, 12:50 PM
Unknown Object (File)
Mar 1 2025, 5:29 AM
Unknown Object (File)
Feb 23 2025, 9:01 PM
Subscribers

Details

Summary

Add the "-n" flag to cron(8), to prevent it from daemonizing.
This makes it possible to use it with external supervisors, like
the one in https://reviews.freebsd.org/D7474. The "-n" flag name
is compatible with Linux and NetBSD.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz retitled this revision from to Add "cron -n"..
trasz updated this object.
trasz edited the test plan for this revision. (Show Details)
jilles added a reviewer: jilles.
jilles added a subscriber: jilles.

Looks good to me. Make sure to update .Dd in cron.8 when committing.

This revision is now accepted and ready to land.Aug 19 2016, 1:45 PM
pfg edited edge metadata.

Looks very neat.

wblock added inline comments.
usr.sbin/cron/cron/cron.8
137 ↗(On Diff #19489)

Avoid contractions.
The semicolon is questionable, could be replaced with a comma or just split the sentence there.

Do not daemonize, run in foreground instead.
This revision was automatically updated to reflect the committed changes.