slackware-current/source/a/dcron/run-parts.8
Patrick J Volkerding 590c390ae3 Fri Feb 23 20:37:29 UTC 2024
a/dcron-4.5-x86_64-17.txz:  Rebuilt.
  run-parts.8: document skiping *.orig files. Thanks to metaed.
a/etc-15.1-x86_64-6.txz:  Rebuilt.
  Add support for nss-mdns to /etc/nsswitch.conf.
a/kernel-firmware-20240220_97b693d-noarch-1.txz:  Upgraded.
a/kernel-generic-6.6.18-x86_64-1.txz:  Upgraded.
a/kernel-huge-6.6.18-x86_64-1.txz:  Upgraded.
a/kernel-modules-6.6.18-x86_64-1.txz:  Upgraded.
ap/cups-filters-1.28.17-x86_64-5.txz:  Rebuilt.
  Don't specify --with-browseremoteprotocols=cups in order to get the default
  values of cups and dnssd, which should enable discovering shared printers on
  the network. We'll refrain from sharing your printer -- you'll need to change
  that setting yourself. ;-)
  Thanks to TurboBlaze.
ap/hplip-3.23.12-x86_64-2.txz:  Rebuilt.
  The new --disable-imageProcessor-build option doesn't do squat, so we'll hit
  it with the good old patch again.
  Thanks to Petri Kaukasoina and Stuart Winter.
d/kernel-headers-6.6.18-x86-1.txz:  Upgraded.
k/kernel-source-6.6.18-noarch-1.txz:  Upgraded.
l/gvfs-1.52.2-x86_64-2.txz:  Rebuilt.
  Added -Ddnssd=true option and recompiled against avahi.
l/libsecret-0.21.4-x86_64-1.txz:  Upgraded.
n/c-ares-1.27.0-x86_64-1.txz:  Upgraded.
n/libgpg-error-1.48-x86_64-1.txz:  Upgraded.
n/nss-mdns-0.15.1-x86_64-1.txz:  Added.
  Needed for .local lookups. Thanks to Lockywolf.
xap/pidgin-2.14.13-x86_64-1.txz:  Upgraded.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2024-02-23 22:33:35 +01:00

76 lines
2.4 KiB
Groff

.\" -*- nroff -*-
.ds g \" empty
.ds G \" empty
.\" Like TP, but if specified indent is more than half
.\" the current line-length - indent, use the default indent.
.de Tp
.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
.el .TP "\\$1"
..
.TH RUN-PARTS 8 "23 Feb 2024" "Slackware Version 15.1"
.SH NAME
run-parts \- run scripts found in a directory
.SH SYNOPSIS
.B run-parts [ --list | --test ] <directory>
.LP
.SH DESCRIPTION
.B run-parts
is a utility that will run scripts that are found in a directory. For example,
it might be useful to create an /etc/cron.daily directory and put scripts in
there for daily cron jobs. Then
.B run-parts
can be called once a day from root's crontab to run all the scripts found in
/etc/cron.daily:
40 4 * * * run-parts /etc/cron.daily
.B run-parts
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 .orig .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
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).