Page MenuHomeFreeBSD

Add "cron -n".
ClosedPublic

Authored by trasz on Aug 19 2016, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 30, 11:15 AM
Unknown Object (File)
Mon, Dec 23, 6:57 PM
Unknown Object (File)
Oct 23 2024, 12:47 AM
Unknown Object (File)
Oct 23 2024, 12:46 AM
Unknown Object (File)
Oct 23 2024, 12:46 AM
Unknown Object (File)
Oct 23 2024, 12:33 AM
Unknown Object (File)
Oct 2 2024, 6:35 AM
Unknown Object (File)
Sep 21 2024, 4:24 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 Passed
Unit
No Test Coverage
Build Status
Buildable 4863
Build 4926: arc lint + arc unit

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

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.