Page MenuHomeFreeBSD

Add "cron -n".
ClosedPublic

Authored by trasz on Aug 19 2016, 12:42 PM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.