summaryrefslogtreecommitdiff
path: root/usr/src/man/man1
diff options
context:
space:
mode:
authorSebastian Wiedenroth <wiedi@frubar.net>2022-01-01 17:07:01 +0100
committerRobert Mustacchi <rm@fingolfin.org>2022-01-29 21:05:44 +0000
commit618372bccd696950e1d234d0ad9c94c353882dee (patch)
tree7a0dbfa1fd717e54e306b8dcd8b5b7aef966e0fa /usr/src/man/man1
parent8c65387009c4cfaa0924c78065b46a4d4a178d41 (diff)
downloadillumos-gate-618372bccd696950e1d234d0ad9c94c353882dee.tar.gz
14358 Cron should support randomized delay
Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/man/man1')
-rw-r--r--usr/src/man/man1/crontab.127
1 files changed, 26 insertions, 1 deletions
diff --git a/usr/src/man/man1/crontab.1 b/usr/src/man/man1/crontab.1
index 549133aad2..49723a0b3e 100644
--- a/usr/src/man/man1/crontab.1
+++ b/usr/src/man/man1/crontab.1
@@ -44,8 +44,10 @@
.\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
.\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
+.\" Copyright 2022 Sebastian Wiedenroth
+
.\"
-.TH CRONTAB 1 "Aug 20, 2020"
+.TH CRONTAB 1 "Jan 9, 2022"
.SH NAME
crontab \- user crontab file
.SH SYNOPSIS
@@ -314,6 +316,29 @@ TZ=Iceland
.RE
.sp
+.ne 2
+.na
+\fBRANDOM_DELAY\fR
+.ad
+.sp .6
+.RS 4n
+Allows the user to specify an upper bound in minutes for which execution
+may be delayed. The default is 0 which means no delay. A value that is
+larger than the scheduled interval may result in the command running less
+often. For example, to have the command run at some random time within
+two minutes after the schedule use:
+.sp
+.in +2
+.nf
+RANDOM_DELAY=2
+.fi
+.in -2
+.sp
+
+.RE
+
+
+.sp
.LP
Each of these variables affects all of the lines that follow it in the
\fBcrontab\fR file, until it is reset by a subsequent line resetting that