OpenBSD CVS

CVS log for src/usr.sbin/cron/cron.8


[BACK] Up to [local] / src / usr.sbin / cron

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:27 2019 UTC (5 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, HEAD
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

I am retiring my old email address;  replace it with my OpenBSD one.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 8 17:13:39 2017 UTC (7 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored)

update permissions info to match recent changes

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 12 21:14:01 2015 UTC (8 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

new location for cron sockets; ok millert

Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 12 17:46:40 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.32: +2 -16 lines
Diff to previous 1.32 (colored)

Remove SIGNALS section now that the non-syslog code has been removed.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 23 01:01:06 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.31: +2 -45 lines
Diff to previous 1.31 (colored)

remove debug code.
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational status, I think syslog
would be more appropriate. (The debug flags also disable forking
into the background, so they aren't even that useful for debugging a
live system.)
ok deraadt millert

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 16 11:13:33 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@

Revision 1.30 / (download) - annotate - [select for diffs], Thu May 31 19:20:23 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

convert to new .Dd format;

Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 28 16:49:25 2007 UTC (17 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.28: +7 -10 lines
Diff to previous 1.28 (colored)

Since /etc/crontab is not edited via crontab(1) there's no good
reason to require its mode to be be 0400 or to bail if the link
count is != 1.  The reason for such paranoia all has to do with
crontab(1) and editing user crontab files.  We now only require
that /etc/crontab not be writable by anyone other than the owner.
OK deraadt@ ajacoutot@ jmc@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 18 23:59:03 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.27: +10 -3 lines
Diff to previous 1.27 (colored)

tidy up synopsis and usage();

Revision 1.27 / (download) - annotate - [select for diffs], Wed Nov 30 11:18:28 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

timezone -> time zone

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 3 19:56:09 2004 UTC (20 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

Document behavior if MAILTO is set to the empty string.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 24 19:39:48 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

remove reference to -x bit;
ok millert@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 17 21:56:26 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +12 -8 lines
Diff to previous 1.23 (colored)

Sync with share/misc/license.template and add missing DARPA credit
where applicable.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 12 12:59:50 2003 UTC (21 years ago) by jmc
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

- section reorder
- macro fixes
- kill whitespace at EOL
- new sentence, new line

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 3 01:20:39 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

Don't need 'all right reserved'; brings this into line with my other
ISC-style copyrights.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 20 20:38:08 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.20: +12 -22 lines
Diff to previous 1.20 (colored)

Sync with ISC cron-current + my at(1) integration.
The at(1) code is now more tightly integrated into the cron codebase.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 19 23:45:46 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.19: +13 -1 lines
Diff to previous 1.19 (colored)

Mention that /etc/crontab must be mode 0600 if it exists.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 19 22:11:42 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Move contents of /var/at into /var/cron since at is now intergrated into
cron.  When ISC cron 5.0 is out the integration will be even tighter.

Also rename /var/cron/{allow,deny} -> /var/cron/cron.{allow,deny}
for consistency with POSIX and at.{allow,deny} and install an empty
cron.deny file (as we do at.deny) since crontab will require this
in the near future for POSIX compliance.

After a "make build" you can update your system as follows:
# mv /var/at/* /var/cron
# mv /var/cron/jobs /var/cron/atjobs
# mv /var/cron.allow /var/cron/cron.allow
# mv /var/cron.deny /var/cron/cron.deny
# rm -rf /var/at
# kill `cat /var/run/cron.pid` ; cron

Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 17 18:40:11 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.17: +9 -1 lines
Diff to previous 1.17 (colored)

Add a -n flag and version string; from vixie

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 1 16:29:52 2003 UTC (21 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

typos;
chat(8): removed reference to uucico(8)

ok deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 15 19:13:29 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.15: +144 -72 lines
Diff to previous 1.15 (colored)

Move atrun(8) functionality into cron(8) proper.  This fixes the
long-standing annoyance that atrun's granularity is 10 minutes.
Most at jobs run with a 1 minute granularity.  Jobs submitted via
"at now" or "batch" will run immediately.  Includes a rewritten
cron(8) man page.  at(1) will be integrated more closely into
cron at a future date.

Upgrading notes:
    the atrun job in root's crontab should be removed.
    the /var/at/spool directory is no longer used

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 8 18:11:02 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Merge in some changes from Paul Vixie's tree; most are cosmetic
o ANSI function headers
o return (foo) not return foo
o add -oi to sendmail flags
o update email address in man pages
o make some strings const
o completely remove globbing cruft from popen.c
o whitespace changes
o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 9 21:22:01 2002 UTC (22 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.13: +13 -6 lines
Diff to previous 1.13 (colored)

crontab is no longer setuid root, it is now setgid crontab.
These changes were modelled after the Owl version of vixie-cron,
but developed independently.

Our crontab used to send cron SIGUSR1 to tell cron to reread the
spool dir.  Now that crontab is not setuid root this doesn't work.
Instead, crontab pokes cron via a Unix domain socket located in the
tabs dir.

Please note, after these changes, the owner on user crontab files
will have to be changed manually from root to the uid of the
corresponding user for crontab to be usable.  cron itself will accept
tab files owned by either root or the user.
Also, any /var/cron/{allow,deny} files must be readable by group crontab.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 20 23:27:47 2001 UTC (22 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.12: +20 -6 lines
Diff to previous 1.12 (colored)

Cause crontab to send SIGUSR1 when a user's crontab file has changed.
In cron, this interrupts the sleep() in cron_sleep() and causes cron
to check to see what signal woke it up and act appropriately.
This makes crontab changes take effect more or immediately.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 13 19:38:42 2001 UTC (22 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)

Mention that cron should be started late in the rc file and why.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 2 18:37:34 2001 UTC (22 years, 10 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

o) .Sh AUTHOR -> .Sh AUTHORS;
o) .Sh EXAMPLE -> .Sh EXAMPLES;
o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION;

millert@ ok

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 19 00:18:33 2001 UTC (23 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +1 -5 lines
Diff to previous 1.9 (colored)

We handle the clock going backwards.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 18 19:48:31 2001 UTC (23 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.8: +28 -15 lines
Diff to previous 1.8 (colored)

Update to ISC cron 4.0b1 + our patches.  This is now under a BSD license.
I also fixed the signal handlers while I was at it.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 19 17:57:03 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.7: +11 -7 lines
Diff to previous 1.7 (colored)

Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some other
cleanup along the way.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 7 10:50:11 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os.
Out of the approximately 1450 man pages, only about 90 of them were wrong.
Thanks to kwesterback@home.com for coming up with a script and patch to repair
this. The patch also inserted a .Os macro in the few man pages that were
missing one.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 2 20:11:48 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

consistent .Dd usage; proper format is: .Dd Month DD, YYYY

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 18 02:11:44 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.4: +62 -45 lines
Diff to previous 1.4 (colored)

new mandoc cron(8), crontab(1), and crontab(5) man pages; kwesterback@home.com

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 5 22:16:34 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

remove trailing whitespace, some Nm cleanup

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 10 02:43:11 1999 UTC (25 years, 3 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Daylight Saving Time, not savings

Revision 1.2 / (download) - annotate - [select for diffs], Mon Dec 22 08:10:40 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.1: +16 -1 lines
Diff to previous 1.1 (colored)

handle timing normally except when clock jumps between 1 and 3 hours. If it
jumps, attempt as best as possible to gaurantee that jobs DO run, but only
run ONCE; patch by thompson@.tgsoft.com

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:30 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:47:30 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.