periodic.conf revision 205509
117680Spst#!/bin/sh 217680Spst# 317680Spst# This is defaults/periodic.conf - a file full of useful variables that 417680Spst# you can set to change the default behaviour of periodic jobs on your 517680Spst# system. You should not edit this file! Put any overrides into one of the 617680Spst# $periodic_conf_files instead and you will be able to update these defaults 717680Spst# later without spamming your local configuration information. 817680Spst# 917680Spst# The $periodic_conf_files files should only contain values which override 1017680Spst# values set in this file. This eases the upgrade path when defaults 1117680Spst# are changed and new features are added. 1217680Spst# 1317680Spst# For a more detailed explanation of all the periodic.conf variables, please 1417680Spst# refer to the periodic.conf(5) manual page. 1517680Spst# 1617680Spst# $FreeBSD: head/etc/defaults/periodic.conf 205509 2010-03-23 06:19:44Z joerg $ 1717680Spst# 1817680Spst 1917680Spst# What files override these defaults ? 2017680Spstperiodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 2117680Spst 2217680Spst# periodic script dirs 2326180Sfennerlocal_periodic="/usr/local/etc/periodic" 2439297Sfenner 2517680Spst 2617680Spst# Daily options 2717680Spst 2817680Spst# These options are used by periodic(8) itself to determine what to do 2917680Spst# with the output of the sub-programs that are run, and where to send 3017680Spst# that output. $daily_output might be set to /var/log/daily.log if you 3117680Spst# wish to log the daily output and have the files rotated by newsyslog(8) 3217680Spst# 3317680Spstdaily_output="root" # user or /file 3417680Spstdaily_show_success="YES" # scripts returning 0 3517680Spstdaily_show_info="YES" # scripts returning 1 3617680Spstdaily_show_badconfig="NO" # scripts returning 2 3717680Spst 3817680Spst# 100.clean-disks 3917680Spstdaily_clean_disks_enable="NO" # Delete files daily 4017680Spstdaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 4117680Spstdaily_clean_disks_days=3 # If older than this 4217680Spstdaily_clean_disks_verbose="YES" # Mention files deleted 4317680Spst 4417680Spst# 110.clean-tmps 4517680Spstdaily_clean_tmps_enable="NO" # Delete stuff daily 4617680Spstdaily_clean_tmps_dirs="/tmp" # Delete under here 4717680Spstdaily_clean_tmps_days="3" # If not accessed for 4817680Spstdaily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix" 4917680Spstdaily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group .snap" 5017680Spst # Don't delete these 5117680Spstdaily_clean_tmps_verbose="YES" # Mention files deleted 5226180Sfenner 5317680Spst# 120.clean-preserve 5417680Spstdaily_clean_preserve_enable="YES" # Delete files daily 5517680Spstdaily_clean_preserve_days=7 # If not modified for 5617680Spstdaily_clean_preserve_verbose="YES" # Mention files deleted 5717680Spst 5817680Spst# 130.clean-msgs 5917680Spstdaily_clean_msgs_enable="YES" # Delete msgs daily 6017680Spstdaily_clean_msgs_days= # If not modified for 6117680Spst 6217680Spst# 140.clean-rwho 6317680Spstdaily_clean_rwho_enable="YES" # Delete rwho daily 6417680Spstdaily_clean_rwho_days=7 # If not modified for 6517680Spstdaily_clean_rwho_verbose="YES" # Mention files deleted 6617680Spst 6717680Spst# 150.clean-hoststat 6817680Spstdaily_clean_hoststat_enable="YES" # Purge sendmail host 6917680Spst # status cache daily 7017680Spst 7117680Spst# 200.backup-passwd 7217680Spstdaily_backup_passwd_enable="YES" # Backup passwd & group 7317680Spst 7417680Spst# 210.backup-aliases 7517680Spstdaily_backup_aliases_enable="YES" # Backup mail aliases 7617680Spst 7717680Spst# 300.calendar 7817680Spstdaily_calendar_enable="NO" # Run calendar -a 7917680Spst 8017680Spst# 310.accounting 8117680Spstdaily_accounting_enable="YES" # Rotate acct files 8217680Spstdaily_accounting_compress="NO" # Gzip rotated files 8317680Spstdaily_accounting_flags=-q # Flags to /usr/sbin/sa 8417680Spstdaily_accounting_save=3 # How many files to save 8517680Spst 8617680Spst# 330.news 8717680Spstdaily_news_expire_enable="YES" # Run news.expire 8817680Spst 8917680Spst# 400.status-disks 9017680Spstdaily_status_disks_enable="YES" # Check disk status 9117680Spstdaily_status_disks_df_flags="-l -h" # df(1) flags for check 9217680Spst 9317680Spst# 404.status-zfs 9417680Spstdaily_status_zfs_enable="NO" # Check ZFS 9517680Spst 9617680Spst# 405.status-ata_raid 9717680Spstdaily_status_ata_raid_enable="NO" # Check ATA raid status 9817680Spst 9917680Spst# 406.status-gmirror 10017680Spstdaily_status_gmirror_enable="NO" # Check gmirror(8) 10117680Spst 10217680Spst# 407.status-graid3 10317680Spstdaily_status_graid3_enable="NO" # Check graid3(8) 10417680Spst 10517680Spst# 408.status-gstripe 10617680Spstdaily_status_gstripe_enable="NO" # Check gstripe(8) 10717680Spst 10817680Spst# 409.status-gconcat 10917680Spstdaily_status_gconcat_enable="NO" # Check gconcat(8) 11017680Spst 11117680Spst# 420.status-network 11217680Spstdaily_status_network_enable="YES" # Check network status 11317680Spstdaily_status_network_usedns="YES" # DNS lookups are ok 11417680Spst 11517680Spst# 430.status-rwho 11617680Spstdaily_status_rwho_enable="YES" # Check system status 11717680Spst 11817680Spst# 440.status-mailq 11917680Spstdaily_status_mailq_enable="YES" # Check mail status 12017680Spstdaily_status_mailq_shorten="NO" # Shorten output 12117680Spstdaily_status_include_submit_mailq="YES" # Also submit queue 12217680Spst 12317680Spst# 450.status-security 12417680Spstdaily_status_security_enable="YES" # Security check 12517680Spst# See "Security options" below for more options 12617680Spst 12717680Spst# 460.status-mail-rejects 12826180Sfennerdaily_status_mail_rejects_enable="YES" # Check mail rejects 12917680Spstdaily_status_mail_rejects_logs=3 # How many logs to check 13017680Spstdaily_status_mail_rejects_shorten="NO" # Shorten output 13117680Spst 13217680Spst# 470.status-named 13317680Spstdaily_status_named_enable="YES" 13417680Spstdaily_status_named_usedns="YES" # DNS lookups are ok 13517680Spst 13617680Spst# 480.status-ntpd 13717680Spstdaily_status_ntpd_enable="NO" # Check NTP status 13817680Spst 13917680Spst# 500.queuerun 14017680Spstdaily_queuerun_enable="YES" # Run mail queue 14117680Spstdaily_submit_queuerun="YES" # Also submit queue 14217680Spst 14317680Spst# 999.local 14417680Spstdaily_local="/etc/daily.local" # Local scripts 14517680Spst 14617680Spst 14717680Spst# Security options 14817680Spst 14917680Spst# These options are used by the security periodic(8) scripts spawned in 15017680Spst# 450.status-security above. 15117680Spstdaily_status_security_inline="NO" # Run inline ? 15217680Spstdaily_status_security_output="root" # user or /file 15317680Spstdaily_status_security_noamd="NO" # Don't check amd mounts 15417680Spstdaily_status_security_logdir="/var/log" # Directory for logs 15517680Spstdaily_status_security_diff_flags="-b -u" # flags for diff output 15617680Spst 15717680Spst# 100.chksetuid 15817680Spstdaily_status_security_chksetuid_enable="YES" 15917680Spst 16017680Spst# 200.chkmounts 16117680Spstdaily_status_security_chkmounts_enable="YES" 16217680Spst#daily_status_security_chkmounts_ignore="^amd:" # Don't check matching 16317680Spst # FS types 16417680Spst 16517680Spst# 300.chkuid0 16617680Spstdaily_status_security_chkuid0_enable="YES" 16717680Spst 16817680Spst# 400.passwdless 16917680Spstdaily_status_security_passwdless_enable="YES" 17017680Spst 17117680Spst# 410.logincheck 17217680Spstdaily_status_security_logincheck_enable="YES" 17317680Spst 17417680Spst# 500.ipfwdenied 17517680Spstdaily_status_security_ipfwdenied_enable="YES" 17617680Spst 17717680Spst# 510.ipfdenied 17817680Spstdaily_status_security_ipfdenied_enable="YES" 17917680Spst 18017680Spst# 520.pfdenied 18117680Spstdaily_status_security_pfdenied_enable="YES" 18217680Spst 18317680Spst# 550.ipfwlimit 18417680Spstdaily_status_security_ipfwlimit_enable="YES" 18539297Sfenner 18639297Sfenner# 610.ipf6denied 18717680Spstdaily_status_security_ipf6denied_enable="YES" 18817680Spst 18917680Spst# 700.kernelmsg 19017680Spstdaily_status_security_kernelmsg_enable="YES" 19117680Spst 19217680Spst# 800.loginfail 19317680Spstdaily_status_security_loginfail_enable="YES" 19417680Spst 19517680Spst# 900.tcpwrap 19617680Spstdaily_status_security_tcpwrap_enable="YES" 19717680Spst 19817680Spst 19917680Spst# Weekly options 20017680Spst 20117680Spst# These options are used by periodic(8) itself to determine what to do 20217680Spst# with the output of the sub-programs that are run, and where to send 20317680Spst# that output. $weekly_output might be set to /var/log/weekly.log if you 20417680Spst# wish to log the weekly output and have the files rotated by newsyslog(8) 20517680Spst# 20617680Spstweekly_output="root" # user or /file 20717680Spstweekly_show_success="YES" # scripts returning 0 20826180Sfennerweekly_show_info="YES" # scripts returning 1 20917680Spstweekly_show_badconfig="NO" # scripts returning 2 21017680Spst 21117680Spst# 310.locate 21217680Spstweekly_locate_enable="YES" # Update locate weekly 21317680Spst 21417680Spst# 320.whatis 21517680Spstweekly_whatis_enable="YES" # Update whatis weekly 21617680Spst 21717680Spst# 330.catman 21817680Spstweekly_catman_enable="NO" # Preformat man pages 21917680Spst 22017680Spst# 340.noid 22117680Spstweekly_noid_enable="NO" # Find unowned files 22217680Spstweekly_noid_dirs="/" # Look here 22317680Spst 22417680Spst# 400.status-pkg 22517680Spstweekly_status_pkg_enable="NO" # Find out-of-date pkgs 22617680Spstpkg_version=pkg_version # Use this program 22717680Spstpkg_version_index=/usr/ports/INDEX-9 # Use this index file 22817680Spst 22917680Spst# 999.local 23017680Spstweekly_local="/etc/weekly.local" # Local scripts 23117680Spst 23217680Spst 23317680Spst# Monthly options 23417680Spst 23517680Spst# These options are used by periodic(8) itself to determine what to do 23617680Spst# with the output of the sub-programs that are run, and where to send 23717680Spst# that output. $monthly_output might be set to /var/log/monthly.log if you 23817680Spst# wish to log the monthly output and have the files rotated by newsyslog(8) 23917680Spst# 24017680Spstmonthly_output="root" # user or /file 24117680Spstmonthly_show_success="YES" # scripts returning 0 24217680Spstmonthly_show_info="YES" # scripts returning 1 24317680Spstmonthly_show_badconfig="NO" # scripts returning 2 24417680Spst 24517680Spst# 200.accounting 24617680Spstmonthly_accounting_enable="YES" # Login accounting 24717680Spst 24817680Spst# 999.local 24917680Spstmonthly_local="/etc/monthly.local" # Local scripts 25017680Spst 25117680Spst 25217680Spst# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 25317680Spst# scripts to source defaults/periodic.conf overrides safely. 25426180Sfenner 25526180Sfennerif [ -z "${source_periodic_confs_defined}" ]; then 25617680Spst source_periodic_confs_defined=yes 25717680Spst source_periodic_confs () { 25817680Spst local i sourced_files 25917680Spst 26017680Spst for i in ${periodic_conf_files}; do 26117680Spst case ${sourced_files} in 26226180Sfenner *:$i:*) 26326180Sfenner ;; 26417680Spst *) 26517680Spst sourced_files="${sourced_files}:$i:" 26617680Spst [ -r $i ] && . $i 26717680Spst ;; 26817680Spst esac 26917680Spst done 27017680Spst } 27126180Sfennerfi 27226180Sfenner