1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
2015-06-22 20:24:59 +00:00
|
|
|
.Dd June 22, 2015
|
1995-04-12 02:52:21 +00:00
|
|
|
.Dt ATRUN 8
|
2001-07-10 10:49:54 +00:00
|
|
|
.Os
|
1995-04-12 02:52:21 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm atrun
|
|
|
|
.Nd run jobs queued for later execution
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm atrun
|
|
|
|
.Op Fl l Ar load_avg
|
|
|
|
.Op Fl d
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Atrun
|
|
|
|
runs jobs queued by
|
|
|
|
.Xr at 1 .
|
1998-07-01 05:47:58 +00:00
|
|
|
.Pp
|
2015-06-22 20:24:59 +00:00
|
|
|
The system
|
1995-04-12 02:52:21 +00:00
|
|
|
.Xr crontab 5
|
|
|
|
file
|
|
|
|
.Pa /etc/crontab
|
2015-06-22 20:24:59 +00:00
|
|
|
must contain the line
|
2001-02-01 16:38:02 +00:00
|
|
|
.Bd -literal
|
1998-07-01 05:47:58 +00:00
|
|
|
*/5 * * * * root /usr/libexec/atrun
|
2001-02-01 16:38:02 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
2015-06-22 20:24:59 +00:00
|
|
|
so
|
2002-12-24 13:41:48 +00:00
|
|
|
.Nm
|
2015-06-22 20:24:59 +00:00
|
|
|
is invoked every five minutes.
|
1995-04-12 02:52:21 +00:00
|
|
|
.Pp
|
2004-07-02 19:07:33 +00:00
|
|
|
At every invocation,
|
1997-11-20 07:21:55 +00:00
|
|
|
.Nm
|
2015-06-22 20:24:59 +00:00
|
|
|
starts all the jobs in the lowercase queues whose start
|
1998-07-01 05:47:58 +00:00
|
|
|
time has elapsed.
|
2004-07-02 19:07:33 +00:00
|
|
|
In addition, if the load average over the last minute was less than
|
2015-06-22 20:24:59 +00:00
|
|
|
the specified limit, then a maximum of one batch job (denoted by the
|
1998-07-01 05:47:58 +00:00
|
|
|
uppercase queues) is started.
|
2007-06-17 14:02:31 +00:00
|
|
|
.Pp
|
|
|
|
Before starting a job,
|
|
|
|
.Nm
|
2015-06-22 20:24:59 +00:00
|
|
|
checks the status of its owner's account with
|
2007-06-17 14:02:31 +00:00
|
|
|
.Xr pam 3
|
2015-06-22 20:24:59 +00:00
|
|
|
and refuses to run the job if the account is unavailable,
|
2007-06-17 14:02:31 +00:00
|
|
|
e.g., locked out or expired.
|
1995-04-12 02:52:21 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl l Ar load_avg
|
1997-11-20 07:21:55 +00:00
|
|
|
Specify a limiting load factor, over which batch jobs should
|
2012-10-30 19:46:00 +00:00
|
|
|
not be run, instead of the default of 1.5 * number of active CPUs.
|
1995-04-12 02:52:21 +00:00
|
|
|
.It Fl d
|
|
|
|
Debug; print error messages to standard error instead of using
|
|
|
|
.Xr syslog 3 .
|
|
|
|
.El
|
|
|
|
.Sh WARNINGS
|
|
|
|
For
|
1997-11-20 07:21:55 +00:00
|
|
|
.Nm
|
2015-06-22 20:24:59 +00:00
|
|
|
to work, a
|
1995-04-12 02:52:21 +00:00
|
|
|
.Xr cron 8
|
2015-06-22 20:24:59 +00:00
|
|
|
daemon must be running
|
|
|
|
.Nm
|
|
|
|
periodically.
|
1995-04-12 02:52:21 +00:00
|
|
|
.Sh FILES
|
2007-06-17 14:02:31 +00:00
|
|
|
.Bl -tag -width /etc/pam.d/atrun -compact
|
|
|
|
.It Pa /etc/pam.d/atrun
|
|
|
|
.Xr pam.conf 5
|
|
|
|
configuration file for
|
|
|
|
.Nm
|
1998-07-01 05:47:58 +00:00
|
|
|
.It Pa /var/at/jobs
|
1995-04-12 02:52:21 +00:00
|
|
|
Directory containing job files
|
2007-06-17 14:02:31 +00:00
|
|
|
.It Pa /var/at/spool
|
|
|
|
Directory containing output spool files
|
1995-04-12 02:52:21 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1997-11-20 07:21:55 +00:00
|
|
|
.Xr at 1 ,
|
1995-04-12 02:52:21 +00:00
|
|
|
.Xr crontab 1 ,
|
2007-06-17 14:02:31 +00:00
|
|
|
.Xr pam 3 ,
|
1997-11-20 07:21:55 +00:00
|
|
|
.Xr syslog 3 ,
|
1995-04-12 02:52:21 +00:00
|
|
|
.Xr crontab 5 ,
|
2007-06-17 14:02:31 +00:00
|
|
|
.Xr pam.conf 5 ,
|
1997-11-20 07:21:55 +00:00
|
|
|
.Xr cron 8
|
1995-04-12 02:52:21 +00:00
|
|
|
.Sh BUGS
|
2004-07-02 19:07:33 +00:00
|
|
|
The functionality of
|
1997-11-20 07:21:55 +00:00
|
|
|
.Nm
|
1995-04-12 02:52:21 +00:00
|
|
|
should be merged into
|
|
|
|
.Xr cron 8 .
|