2004-03-20 12:18:03 +03:00
|
|
|
.\" $NetBSD: cron.8,v 1.5 2004/03/20 09:18:03 jdolecek Exp $
|
1997-03-13 09:19:07 +03:00
|
|
|
.\"
|
1994-01-05 23:40:12 +03:00
|
|
|
.\"/* Copyright 1988,1990,1993 by Paul Vixie
|
|
|
|
.\" * All rights reserved
|
|
|
|
.\" *
|
|
|
|
.\" * Distribute freely, except: don't remove my name from the source or
|
|
|
|
.\" * documentation (don't take credit for my work), mark your changes (don't
|
|
|
|
.\" * get me blamed for your possible bugs), don't alter or remove this
|
|
|
|
.\" * notice. May be sold if buildable source is provided to buyer. No
|
|
|
|
.\" * warrantee of any kind, express or implied, is included with this
|
|
|
|
.\" * software; use at your own risk, responsibility for damages (if any) to
|
|
|
|
.\" * anyone resulting from the use of this software rests entirely with the
|
|
|
|
.\" * user.
|
|
|
|
.\" *
|
|
|
|
.\" * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
|
|
|
|
.\" * I'll try to keep a version up to date. I can be reached as follows:
|
|
|
|
.\" * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
|
|
|
|
.\" */
|
2002-01-19 06:08:50 +03:00
|
|
|
.\"
|
1997-03-13 09:19:07 +03:00
|
|
|
.\" Id: cron.8,v 2.2 1993/12/28 08:34:43 vixie Exp
|
2002-01-19 06:08:50 +03:00
|
|
|
.\"
|
2004-03-20 12:18:03 +03:00
|
|
|
.Dd March 20, 2004
|
|
|
|
.Dt CRON 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cron
|
|
|
|
.Nd daemon to execute scheduled commands (Vixie Cron)
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
should be started from /etc/rc or /etc/rc.local. It will return immediately,
|
2002-02-08 04:36:18 +03:00
|
|
|
so you don't need to start it with '\*[Am]'.
|
2004-03-20 12:18:03 +03:00
|
|
|
.Pp
|
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
searches /var/cron/tabs for crontab files which are named after accounts in
|
|
|
|
/etc/passwd; crontabs found are loaded into memory.
|
2004-03-20 12:18:03 +03:00
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
also searches for /etc/crontab which is in a different format (see
|
2004-03-20 12:18:03 +03:00
|
|
|
.Xr crontab 5 ).
|
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
then wakes up every minute, examining all stored crontabs, checking each
|
|
|
|
command to see if it should be run in the current minute. When executing
|
|
|
|
commands, any output is mailed to the owner of the crontab (or to the user
|
|
|
|
named in the MAILTO environment variable in the crontab, if such exists).
|
2004-03-20 12:18:03 +03:00
|
|
|
.Pp
|
1994-01-05 23:40:12 +03:00
|
|
|
Additionally,
|
2004-03-20 12:18:03 +03:00
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
checks each minute to see if its spool directory's modtime (or the modtime
|
|
|
|
on
|
2004-03-20 12:18:03 +03:00
|
|
|
.Pa /etc/crontab )
|
1994-01-05 23:40:12 +03:00
|
|
|
has changed, and if it has,
|
2004-03-20 12:18:03 +03:00
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
will then examine the modtime on all crontabs and reload those which have
|
|
|
|
changed. Thus
|
2004-03-20 12:18:03 +03:00
|
|
|
.Nm
|
1994-01-05 23:40:12 +03:00
|
|
|
need not be restarted whenever a crontab file is modified. Note that the
|
2004-03-20 12:18:03 +03:00
|
|
|
.Xr crontab 1
|
1994-01-05 23:40:12 +03:00
|
|
|
command updates the modtime of the spool directory whenever it changes a
|
|
|
|
crontab.
|
2004-03-20 12:18:03 +03:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr crontab 1 ,
|
|
|
|
.Xr crontab 5
|
|
|
|
.Sh AUTHOR
|
|
|
|
.An Paul Vixie
|
|
|
|
.Aq paul@vix.com
|