diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-08-05 21:04:39 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-08-06 07:00:16 +0200 |
commit | 6882ad89994efcb555332d32b9a76282e37018e3 (patch) | |
tree | 21159e2be99bbcab50c85b03bac93b5de44f448e /source/a/dcron/run-parts.8 | |
parent | ca27dc818b992f6deccc946ad7cae6b6e3b626cd (diff) | |
download | current-6882ad89994efcb555332d32b9a76282e37018e3.tar.gz |
Fri Aug 5 21:04:39 UTC 202220220805210439
a/dcron-4.5-x86_64-12.txz: Rebuilt.
Rebase the run-parts script on the latest version from Fedora's crontabs
package. Thanks to avian.
a/elilo-3.16-x86_64-13.txz: Rebuilt.
Patched to disable the Confidential Computing blob for SEV-SNP, which
fixes booting a 5.19 kernel with the EFI stub enabled. If you use elilo,
be sure to either run eliloconfig again or manually copy (and rename) the
proper elilo binary to your EFI System Partition.
Thanks to PiterPunk.
a/sysklogd-2.4.2-x86_64-1.txz: Upgraded.
ap/most-5.2.0-x86_64-1.txz: Upgraded.
d/cmake-3.24.0-x86_64-1.txz: Upgraded.
x/ibus-table-1.16.10-x86_64-1.txz: Upgraded.
extra/brltty/brltty-6.5-x86_64-1.txz: Upgraded.
extra/php80/php80-8.0.22-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/dcron/run-parts.8')
-rw-r--r-- | source/a/dcron/run-parts.8 | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/source/a/dcron/run-parts.8 b/source/a/dcron/run-parts.8 index 2d5e5f6a..74a55492 100644 --- a/source/a/dcron/run-parts.8 +++ b/source/a/dcron/run-parts.8 @@ -7,11 +7,11 @@ .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP .el .TP "\\$1" .. -.TH RUN-PARTS 8 "14 Apr 2002" "Slackware Version 8.1.0 +.TH RUN-PARTS 8 "05 Aug 2022" "Slackware Version 15.1" .SH NAME run-parts \- run scripts found in a directory .SH SYNOPSIS -.B run-parts <directory> +.B run-parts [ --list | --test ] <directory> .LP .SH DESCRIPTION .B run-parts @@ -28,9 +28,49 @@ can be called once a day from root's crontab to run all the scripts found in automatically skips files with certain suffixes that are generally associated with backup or extra files. Any file that ends in one of these will be silently ignored: ~ ^ , .bak .new .rpmsave .rpmorig .rpmnew .swp + +The execution of files can be allowed or denied by creating file +.B jobs.allow +or +.B jobs.deny +which work similarly to other allow/deny config files. The file must be +created in the specified directory. + +Randomization of jobs can be configured in the +.IR /etc/default/run-parts +file. To enable randomization of jobs, set the RANDOMIZE parameter to 1 +and set the RANDOM parameter to an integer which determines a random +seed. Additionally, you may configure the RANDOMTIME parameter (again, +by specifying an integer) to provide an additional level of +randomization. Jobs are not randomized when the RANDOM and RANDOMTIME +parameters are set to 0. Values in these two parameters must be set to +1 or larger to provide a good enough randomization. + +Randomization of cron jobs can be useful for shared networks, where +multiple cron jobs executed at once can cause spikes in traffic, +especially during daily jobs. With randomized jobs, the workload is +evenly distributed throughout the day. + +.TP +.B --list +print names of all files (not limited to executables), but don't run +them. This option can't be used with +.B test +option. +.TP +.B --test +print names of files, which would be run. + +.SH EXAMPLE OF CONFIGURATION FILE +.nf +RANDOMIZE=1 +RANDOM=4 +RANDOMTIME=8 +.fi + .SH AUTHOR -Patrick J. Volkerding <volkerdi@slackware.com>, with ideas borrowed from the -Red Hat and Debian versions of this utility. +Written for Fedora by Marcela Ma■lá■ová, modified slightly for Slackware by +Patrick J. Volkerding <volkerdi@slackware.com>. .SH "SEE ALSO" .BR crond(8), .BR crontab(8). |