|
NAMEperiodic —
run periodic system functions
SYNOPSIS
DESCRIPTIONTheperiodic utility is intended to be called by
cron(8) to
execute shell scripts located in the specified directory.
One or more of the following arguments must be specified:
If an argument is an absolute directory name it is used as is, otherwise it is searched for under /etc/periodic and any other directories specified by the local_periodic setting in periodic.conf(5) (see below). The Each script is required to exit with one of the following values:
If the relevant variable (where
⟨basedir⟩ is the base directory in which
the script resides) is set to “ All remaining script output is delivered based on the value of the ⟨basedir⟩_output setting. If this is set to a path name (beginning with a
‘ If the
⟨basedir⟩_output
value does not begin with a ‘ If ⟨basedir⟩_output is not set or is empty, output is sent to standard output. ENVIRONMENTTheperiodic utility sets the
PATH environment to include all standard system
directories, but no additional directories, such as
/usr/local/bin. If executables are added which depend
upon other path components, each executable must be responsible for
configuring its own appropriate environment.
FILES
EXIT STATUSExit status is 0 on success and 1 if the command fails.EXAMPLESThe system crontab should have entries forperiodic
similar to the following example:
# do daily/weekly/monthly maintenance 0 2 * * * root periodic daily 0 3 * * 6 root periodic weekly 0 5 1 * * root periodic monthly The /etc/defaults/periodic.conf system registry will typically have a local_periodic variable reading: local_periodic="/usr/local/etc/periodic" To log daily_output=/var/log/daily.log weekly_output=/var/log/weekly.log monthly_output=/var/log/monthly.log To only see important information from daily periodic jobs, add the following lines to /etc/periodic.conf: daily_show_success=NO daily_show_info=NO daily_show_badconfig=NO DIAGNOSTICSThe command may fail for one of the following reasons:
SEE ALSOsh(1), crontab(5), periodic.conf(5), cron(8), newsyslog(8)HISTORYTheperiodic utility first appeared in
FreeBSD 3.0.
AUTHORSPaul Traina <pst@FreeBSD.org>Brian Somers <brian@Awfulhak.org> BUGSSince one specifies information about a directory using shell variables containing the string, ⟨basedir⟩, ⟨basedir⟩ must only contain characters that are valid within a sh(1) variable name, alphanumerics and underscores, and the first character may not be numeric.
Visit the GSP FreeBSD Man Page Interface. |