periodic.conf revision 241788
161981Sbrian#!/bin/sh 261981Sbrian# 361981Sbrian# This is defaults/periodic.conf - a file full of useful variables that 461981Sbrian# you can set to change the default behaviour of periodic jobs on your 561981Sbrian# system. You should not edit this file! Put any overrides into one of the 661981Sbrian# $periodic_conf_files instead and you will be able to update these defaults 761981Sbrian# later without spamming your local configuration information. 861981Sbrian# 961981Sbrian# The $periodic_conf_files files should only contain values which override 1061981Sbrian# values set in this file. This eases the upgrade path when defaults 1161981Sbrian# are changed and new features are added. 1261981Sbrian# 13140771Skeramida# For a more detailed explanation of all the periodic.conf variables, please 14140771Skeramida# refer to the periodic.conf(5) manual page. 15140771Skeramida# 1661981Sbrian# $FreeBSD: head/etc/defaults/periodic.conf 241788 2012-10-20 18:13:20Z ume $ 1761981Sbrian# 1861981Sbrian 1961981Sbrian# What files override these defaults ? 2061981Sbrianperiodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 2161981Sbrian 2261981Sbrian# periodic script dirs 23170085Sdougblocal_periodic="/usr/local/etc/periodic" 2461981Sbrian 2561981Sbrian 2661981Sbrian# Daily options 2761981Sbrian 2865843Sbrian# These options are used by periodic(8) itself to determine what to do 2965843Sbrian# with the output of the sub-programs that are run, and where to send 3065843Sbrian# that output. $daily_output might be set to /var/log/daily.log if you 3165843Sbrian# wish to log the daily output and have the files rotated by newsyslog(8) 3265843Sbrian# 3365843Sbriandaily_output="root" # user or /file 3465843Sbriandaily_show_success="YES" # scripts returning 0 3565843Sbriandaily_show_info="YES" # scripts returning 1 3665843Sbriandaily_show_badconfig="NO" # scripts returning 2 3765843Sbrian 3861981Sbrian# 100.clean-disks 3961981Sbriandaily_clean_disks_enable="NO" # Delete files daily 4061981Sbriandaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 4161981Sbriandaily_clean_disks_days=3 # If older than this 4261981Sbriandaily_clean_disks_verbose="YES" # Mention files deleted 4361981Sbrian 4461981Sbrian# 110.clean-tmps 4561981Sbriandaily_clean_tmps_enable="NO" # Delete stuff daily 4661981Sbriandaily_clean_tmps_dirs="/tmp" # Delete under here 4761981Sbriandaily_clean_tmps_days="3" # If not accessed for 48174028Sjhbdaily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix" 49205509Sjoergdaily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group .snap" 50236284Seadlerdaily_clean_tmps_ignore="$daily_clean_tmps_ignore .sujournal" 51174028Sjhb # Don't delete these 5261981Sbriandaily_clean_tmps_verbose="YES" # Mention files deleted 5361981Sbrian 5461981Sbrian# 120.clean-preserve 5561981Sbriandaily_clean_preserve_enable="YES" # Delete files daily 5661981Sbriandaily_clean_preserve_days=7 # If not modified for 5761981Sbriandaily_clean_preserve_verbose="YES" # Mention files deleted 5861981Sbrian 5961981Sbrian# 130.clean-msgs 6061981Sbriandaily_clean_msgs_enable="YES" # Delete msgs daily 6161981Sbriandaily_clean_msgs_days= # If not modified for 6261981Sbrian 6361981Sbrian# 140.clean-rwho 6461981Sbriandaily_clean_rwho_enable="YES" # Delete rwho daily 6561981Sbriandaily_clean_rwho_days=7 # If not modified for 6661981Sbriandaily_clean_rwho_verbose="YES" # Mention files deleted 6761981Sbrian 6861981Sbrian# 150.clean-hoststat 69108959Swollmandaily_clean_hoststat_enable="YES" # Purge sendmail host 70108959Swollman # status cache daily 7161981Sbrian 7261981Sbrian# 200.backup-passwd 7361981Sbriandaily_backup_passwd_enable="YES" # Backup passwd & group 7461981Sbrian 7561981Sbrian# 210.backup-aliases 7661981Sbriandaily_backup_aliases_enable="YES" # Backup mail aliases 7761981Sbrian 78220020Sdougb# 220.backup-pkgdb 79220020Sdougbdaily_backup_pkgdb_enable="YES" # Backup /var/db/pkg 80220020Sdougbdaily_backup_pkgdb_dir="/var/backups" 81220020Sdougb 8261981Sbrian# 300.calendar 8361981Sbriandaily_calendar_enable="NO" # Run calendar -a 8461981Sbrian 8561981Sbrian# 310.accounting 8661981Sbriandaily_accounting_enable="YES" # Rotate acct files 8762054Sbriandaily_accounting_compress="NO" # Gzip rotated files 8877496Sbriandaily_accounting_flags=-q # Flags to /usr/sbin/sa 8977492Sbriandaily_accounting_save=3 # How many files to save 9061981Sbrian 9161981Sbrian# 330.news 9261981Sbriandaily_news_expire_enable="YES" # Run news.expire 9361981Sbrian 9461981Sbrian# 400.status-disks 9561981Sbriandaily_status_disks_enable="YES" # Check disk status 96155060Smatteodaily_status_disks_df_flags="-l -h" # df(1) flags for check 9761981Sbrian 98168412Spjd# 404.status-zfs 99168412Spjddaily_status_zfs_enable="NO" # Check ZFS 100231171Sgjbdaily_status_zfs_zpool_list_enable="YES" # List ZFS pools 101168412Spjd 102121620Sjesper# 405.status-ata_raid 103123498Sjesperdaily_status_ata_raid_enable="NO" # Check ATA raid status 104121620Sjesper 105154304Swollman# 406.status-gmirror 106154304Swollmandaily_status_gmirror_enable="NO" # Check gmirror(8) 107154304Swollman 108156216Sbrueffer# 407.status-graid3 109156216Sbruefferdaily_status_graid3_enable="NO" # Check graid3(8) 110156216Sbrueffer 111156216Sbrueffer# 408.status-gstripe 112156216Sbruefferdaily_status_gstripe_enable="NO" # Check gstripe(8) 113156216Sbrueffer 114156216Sbrueffer# 409.status-gconcat 115156216Sbruefferdaily_status_gconcat_enable="NO" # Check gconcat(8) 116156216Sbrueffer 11761981Sbrian# 420.status-network 11861981Sbriandaily_status_network_enable="YES" # Check network status 11961981Sbriandaily_status_network_usedns="YES" # DNS lookups are ok 12061981Sbrian 12161981Sbrian# 430.status-rwho 12261981Sbriandaily_status_rwho_enable="YES" # Check system status 12361981Sbrian 12461981Sbrian# 440.status-mailq 12561981Sbriandaily_status_mailq_enable="YES" # Check mail status 12661981Sbriandaily_status_mailq_shorten="NO" # Shorten output 12794342Sgshapirodaily_status_include_submit_mailq="YES" # Also submit queue 12861981Sbrian 12961981Sbrian# 450.status-security 13061981Sbriandaily_status_security_enable="YES" # Security check 13187514Scjc# See "Security options" below for more options 13261981Sbrian 13361981Sbrian# 460.status-mail-rejects 13461981Sbriandaily_status_mail_rejects_enable="YES" # Check mail rejects 13562274Sbriandaily_status_mail_rejects_logs=3 # How many logs to check 136175153Sddsdaily_status_mail_rejects_shorten="NO" # Shorten output 13761981Sbrian 13875809Sdirk# 470.status-named 13975809Sdirkdaily_status_named_enable="YES" 14075809Sdirkdaily_status_named_usedns="YES" # DNS lookups are ok 14175809Sdirk 142169517Smaxim# 480.status-ntpd 143169517Smaximdaily_status_ntpd_enable="NO" # Check NTP status 144169517Smaxim 145210863Solli# 490.status-pkg-changes 146210863Sollidaily_status_pkg_changes_enable="NO" # Show package changes 147241788Sumepkg_info="pkg_info" # Use this program 148210863Solli 14972677Speter# 500.queuerun 15072677Speterdaily_queuerun_enable="YES" # Run mail queue 15194342Sgshapirodaily_submit_queuerun="YES" # Also submit queue 15272677Speter 153226471Sse# 800.scrub-zfs 154226471Ssedaily_scrub_zfs_enable="NO" 155226471Ssedaily_scrub_zfs_pools="" # empty string selects all pools 156226865Sdelphijdaily_scrub_zfs_default_threshold="35" # days between scrubs 157226865Sdelphij#daily_scrub_zfs_${poolname}_threshold="35" # pool specific threshold 158226471Sse 15961981Sbrian# 999.local 16061981Sbriandaily_local="/etc/daily.local" # Local scripts 16161981Sbrian 16261981Sbrian 16387514Scjc# Security options 16487514Scjc 165101607Sfanf# These options are used by the security periodic(8) scripts spawned in 16687514Scjc# 450.status-security above. 16787514Scjcdaily_status_security_inline="NO" # Run inline ? 16887514Scjcdaily_status_security_output="root" # user or /file 16987514Scjcdaily_status_security_noamd="NO" # Don't check amd mounts 17087514Scjcdaily_status_security_logdir="/var/log" # Directory for logs 171135591Sjkoshydaily_status_security_diff_flags="-b -u" # flags for diff output 17287514Scjc 17387514Scjc# 100.chksetuid 17487514Scjcdaily_status_security_chksetuid_enable="YES" 17587514Scjc 176215213Sbrooks# 110.neggrpperm 177219018Sbrooksdaily_status_security_neggrpperm_enable="YES" 178215213Sbrooks 17987514Scjc# 200.chkmounts 18087514Scjcdaily_status_security_chkmounts_enable="YES" 18187514Scjc#daily_status_security_chkmounts_ignore="^amd:" # Don't check matching 18287514Scjc # FS types 18387514Scjc 18487514Scjc# 300.chkuid0 18587514Scjcdaily_status_security_chkuid0_enable="YES" 18687514Scjc 18787514Scjc# 400.passwdless 18887514Scjcdaily_status_security_passwdless_enable="YES" 18987514Scjc 190161602Strhodes# 410.logincheck 191161602Strhodesdaily_status_security_logincheck_enable="YES" 192161602Strhodes 193210254Sgabor# 460.chkportsum 194210254Sgabordaily_status_security_chkportsum_enable="NO" # Check ports w/ wrong checksum 195210254Sgabor 19687514Scjc# 500.ipfwdenied 19787514Scjcdaily_status_security_ipfwdenied_enable="YES" 19887514Scjc 199105937Sthomas# 510.ipfdenied 200105937Sthomasdaily_status_security_ipfdenied_enable="YES" 201105937Sthomas 202138061Smlaier# 520.pfdenied 203138061Smlaierdaily_status_security_pfdenied_enable="YES" 204138061Smlaier 20587514Scjc# 550.ipfwlimit 20687514Scjcdaily_status_security_ipfwlimit_enable="YES" 20787514Scjc 208128473Sdarrenr# 610.ipf6denied 209128473Sdarrenrdaily_status_security_ipf6denied_enable="YES" 210128473Sdarrenr 21187514Scjc# 700.kernelmsg 21287514Scjcdaily_status_security_kernelmsg_enable="YES" 21387514Scjc 21487514Scjc# 800.loginfail 21587514Scjcdaily_status_security_loginfail_enable="YES" 21687514Scjc 21787514Scjc# 900.tcpwrap 21887514Scjcdaily_status_security_tcpwrap_enable="YES" 21987514Scjc 22087514Scjc 22161981Sbrian# Weekly options 22261981Sbrian 22365843Sbrian# These options are used by periodic(8) itself to determine what to do 22465843Sbrian# with the output of the sub-programs that are run, and where to send 22565843Sbrian# that output. $weekly_output might be set to /var/log/weekly.log if you 22665843Sbrian# wish to log the weekly output and have the files rotated by newsyslog(8) 22765843Sbrian# 22865843Sbrianweekly_output="root" # user or /file 22965843Sbrianweekly_show_success="YES" # scripts returning 0 23065843Sbrianweekly_show_info="YES" # scripts returning 1 23165843Sbrianweekly_show_badconfig="NO" # scripts returning 2 23265843Sbrian 23361981Sbrian# 310.locate 23461981Sbrianweekly_locate_enable="YES" # Update locate weekly 23561981Sbrian 23661981Sbrian# 320.whatis 23761981Sbrianweekly_whatis_enable="YES" # Update whatis weekly 23861981Sbrian 23961981Sbrian# 330.catman 24061981Sbrianweekly_catman_enable="NO" # Preformat man pages 24161981Sbrian 24261981Sbrian# 340.noid 24361981Sbrianweekly_noid_enable="NO" # Find unowned files 24461981Sbrianweekly_noid_dirs="/" # Look here 24561981Sbrian 24662206Sbrian# 400.status-pkg 24762155Sbrianweekly_status_pkg_enable="NO" # Find out-of-date pkgs 248103948Sbrianpkg_version=pkg_version # Use this program 249241787Sumepkg_version_index=/usr/ports/INDEX-10 # Use this index file 25062155Sbrian 25161981Sbrian# 999.local 25261981Sbrianweekly_local="/etc/weekly.local" # Local scripts 25361981Sbrian 25461981Sbrian 25561981Sbrian# Monthly options 25661981Sbrian 25765843Sbrian# These options are used by periodic(8) itself to determine what to do 25865843Sbrian# with the output of the sub-programs that are run, and where to send 25965843Sbrian# that output. $monthly_output might be set to /var/log/monthly.log if you 26065843Sbrian# wish to log the monthly output and have the files rotated by newsyslog(8) 26165843Sbrian# 26265843Sbrianmonthly_output="root" # user or /file 26365843Sbrianmonthly_show_success="YES" # scripts returning 0 26465843Sbrianmonthly_show_info="YES" # scripts returning 1 26565843Sbrianmonthly_show_badconfig="NO" # scripts returning 2 26665843Sbrian 26761981Sbrian# 200.accounting 26861981Sbrianmonthly_accounting_enable="YES" # Login accounting 26961981Sbrian 27061981Sbrian# 999.local 27161981Sbrianmonthly_local="/etc/monthly.local" # Local scripts 27261981Sbrian 27361981Sbrian 27461981Sbrian# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 27561981Sbrian# scripts to source defaults/periodic.conf overrides safely. 27661981Sbrian 27761981Sbrianif [ -z "${source_periodic_confs_defined}" ]; then 27861981Sbrian source_periodic_confs_defined=yes 279238416Skevlo source_periodic_confs() { 28061981Sbrian local i sourced_files 28161981Sbrian 28261981Sbrian for i in ${periodic_conf_files}; do 28361981Sbrian case ${sourced_files} in 28461981Sbrian *:$i:*) 28561981Sbrian ;; 28661981Sbrian *) 28761981Sbrian sourced_files="${sourced_files}:$i:" 28861981Sbrian [ -r $i ] && . $i 28961981Sbrian ;; 29061981Sbrian esac 29161981Sbrian done 29261981Sbrian } 29361981Sbrianfi 294