]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - libexec/atrun/atrun.man
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / libexec / atrun / atrun.man
1 .\" $FreeBSD$
2 .Dd October 30, 2012
3 .Dt ATRUN 8
4 .Os
5 .Sh NAME
6 .Nm atrun
7 .Nd run jobs queued for later execution
8 .Sh SYNOPSIS
9 .Nm atrun
10 .Op Fl l Ar load_avg
11 .Op Fl d
12 .Sh DESCRIPTION
13 .Nm Atrun
14 runs jobs queued by
15 .Xr at 1 .
16 .Pp
17 Root's
18 .Xr crontab 5
19 file
20 .Pa /etc/crontab
21 has to contain the line
22 .Bd -literal
23 */5     *       *       *       *       root    /usr/libexec/atrun
24 .Ed
25 .Pp
26 so that
27 .Nm
28 gets invoked every five minutes.
29 .Pp
30 At every invocation,
31 .Nm
32 will start all the jobs in the lowercase queues whose start
33 time has elapsed.
34 In addition, if the load average over the last minute was less than
35 the specified limit then a maximum of one batch job (denoted by the
36 uppercase queues) is started.
37 .Pp
38 Before starting a job,
39 .Nm
40 will check the status of its owner's account with
41 .Xr pam 3
42 and refuse to run the job if the account is unavailable,
43 e.g., locked out or expired.
44 .Sh OPTIONS
45 .Bl -tag -width indent
46 .It Fl l Ar load_avg
47 Specify a limiting load factor, over which batch jobs should
48 not be run, instead of the default of 1.5 * number of active CPUs.
49 .It Fl d
50 Debug; print error messages to standard error instead of using
51 .Xr syslog 3 .
52 .El
53 .Sh WARNINGS
54 For
55 .Nm
56 to work, you have to start up a
57 .Xr cron 8
58 daemon.
59 .Sh FILES
60 .Bl -tag -width /etc/pam.d/atrun -compact
61 .It Pa /etc/pam.d/atrun
62 .Xr pam.conf 5
63 configuration file for
64 .Nm
65 .It Pa /var/at/jobs
66 Directory containing job files
67 .It Pa /var/at/spool
68 Directory containing output spool files
69 .El
70 .Sh SEE ALSO
71 .Xr at 1 ,
72 .Xr crontab 1 ,
73 .Xr pam 3 ,
74 .Xr syslog 3 ,
75 .Xr crontab 5 ,
76 .Xr pam.conf 5 ,
77 .Xr cron 8
78 .Sh BUGS
79 The functionality of
80 .Nm
81 should be merged into
82 .Xr cron 8 .