periodic.conf revision 196442
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 196442 2009-08-23 06:30:14Z kensmith $ 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" 49174028Sjhbdaily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group" 50174028Sjhb # Don't delete these 5161981Sbriandaily_clean_tmps_verbose="YES" # Mention files deleted 5261981Sbrian 5361981Sbrian# 120.clean-preserve 5461981Sbriandaily_clean_preserve_enable="YES" # Delete files daily 5561981Sbriandaily_clean_preserve_days=7 # If not modified for 5661981Sbriandaily_clean_preserve_verbose="YES" # Mention files deleted 5761981Sbrian 5861981Sbrian# 130.clean-msgs 5961981Sbriandaily_clean_msgs_enable="YES" # Delete msgs daily 6061981Sbriandaily_clean_msgs_days= # If not modified for 6161981Sbrian 6261981Sbrian# 140.clean-rwho 6361981Sbriandaily_clean_rwho_enable="YES" # Delete rwho daily 6461981Sbriandaily_clean_rwho_days=7 # If not modified for 6561981Sbriandaily_clean_rwho_verbose="YES" # Mention files deleted 6661981Sbrian 6761981Sbrian# 150.clean-hoststat 68108959Swollmandaily_clean_hoststat_enable="YES" # Purge sendmail host 69108959Swollman # status cache daily 7061981Sbrian 7161981Sbrian# 200.backup-passwd 7261981Sbriandaily_backup_passwd_enable="YES" # Backup passwd & group 7361981Sbrian 7461981Sbrian# 210.backup-aliases 7561981Sbriandaily_backup_aliases_enable="YES" # Backup mail aliases 7661981Sbrian 7761981Sbrian# 300.calendar 7861981Sbriandaily_calendar_enable="NO" # Run calendar -a 7961981Sbrian 8061981Sbrian# 310.accounting 8161981Sbriandaily_accounting_enable="YES" # Rotate acct files 8262054Sbriandaily_accounting_compress="NO" # Gzip rotated files 8377496Sbriandaily_accounting_flags=-q # Flags to /usr/sbin/sa 8477492Sbriandaily_accounting_save=3 # How many files to save 8561981Sbrian 8661981Sbrian# 330.news 8761981Sbriandaily_news_expire_enable="YES" # Run news.expire 8861981Sbrian 8961981Sbrian# 400.status-disks 9061981Sbriandaily_status_disks_enable="YES" # Check disk status 91155060Smatteodaily_status_disks_df_flags="-l -h" # df(1) flags for check 9261981Sbrian 93168412Spjd# 404.status-zfs 94168412Spjddaily_status_zfs_enable="NO" # Check ZFS 95168412Spjd 96121620Sjesper# 405.status-ata_raid 97123498Sjesperdaily_status_ata_raid_enable="NO" # Check ATA raid status 98121620Sjesper 99154304Swollman# 406.status-gmirror 100154304Swollmandaily_status_gmirror_enable="NO" # Check gmirror(8) 101154304Swollman 102156216Sbrueffer# 407.status-graid3 103156216Sbruefferdaily_status_graid3_enable="NO" # Check graid3(8) 104156216Sbrueffer 105156216Sbrueffer# 408.status-gstripe 106156216Sbruefferdaily_status_gstripe_enable="NO" # Check gstripe(8) 107156216Sbrueffer 108156216Sbrueffer# 409.status-gconcat 109156216Sbruefferdaily_status_gconcat_enable="NO" # Check gconcat(8) 110156216Sbrueffer 11161981Sbrian# 420.status-network 11261981Sbriandaily_status_network_enable="YES" # Check network status 11361981Sbriandaily_status_network_usedns="YES" # DNS lookups are ok 11461981Sbrian 11561981Sbrian# 430.status-rwho 11661981Sbriandaily_status_rwho_enable="YES" # Check system status 11761981Sbrian 11861981Sbrian# 440.status-mailq 11961981Sbriandaily_status_mailq_enable="YES" # Check mail status 12061981Sbriandaily_status_mailq_shorten="NO" # Shorten output 12194342Sgshapirodaily_status_include_submit_mailq="YES" # Also submit queue 12261981Sbrian 12361981Sbrian# 450.status-security 12461981Sbriandaily_status_security_enable="YES" # Security check 12587514Scjc# See "Security options" below for more options 12661981Sbrian 12761981Sbrian# 460.status-mail-rejects 12861981Sbriandaily_status_mail_rejects_enable="YES" # Check mail rejects 12962274Sbriandaily_status_mail_rejects_logs=3 # How many logs to check 130175153Sddsdaily_status_mail_rejects_shorten="NO" # Shorten output 13161981Sbrian 13275809Sdirk# 470.status-named 13375809Sdirkdaily_status_named_enable="YES" 13475809Sdirkdaily_status_named_usedns="YES" # DNS lookups are ok 13575809Sdirk 136169517Smaxim# 480.status-ntpd 137169517Smaximdaily_status_ntpd_enable="NO" # Check NTP status 138169517Smaxim 13972677Speter# 500.queuerun 14072677Speterdaily_queuerun_enable="YES" # Run mail queue 14194342Sgshapirodaily_submit_queuerun="YES" # Also submit queue 14272677Speter 14361981Sbrian# 999.local 14461981Sbriandaily_local="/etc/daily.local" # Local scripts 14561981Sbrian 14661981Sbrian 14787514Scjc# Security options 14887514Scjc 149101607Sfanf# These options are used by the security periodic(8) scripts spawned in 15087514Scjc# 450.status-security above. 15187514Scjcdaily_status_security_inline="NO" # Run inline ? 15287514Scjcdaily_status_security_output="root" # user or /file 15387514Scjcdaily_status_security_noamd="NO" # Don't check amd mounts 15487514Scjcdaily_status_security_logdir="/var/log" # Directory for logs 155135591Sjkoshydaily_status_security_diff_flags="-b -u" # flags for diff output 15687514Scjc 15787514Scjc# 100.chksetuid 15887514Scjcdaily_status_security_chksetuid_enable="YES" 15987514Scjc 16087514Scjc# 200.chkmounts 16187514Scjcdaily_status_security_chkmounts_enable="YES" 16287514Scjc#daily_status_security_chkmounts_ignore="^amd:" # Don't check matching 16387514Scjc # FS types 16487514Scjc 16587514Scjc# 300.chkuid0 16687514Scjcdaily_status_security_chkuid0_enable="YES" 16787514Scjc 16887514Scjc# 400.passwdless 16987514Scjcdaily_status_security_passwdless_enable="YES" 17087514Scjc 171161602Strhodes# 410.logincheck 172161602Strhodesdaily_status_security_logincheck_enable="YES" 173161602Strhodes 17487514Scjc# 500.ipfwdenied 17587514Scjcdaily_status_security_ipfwdenied_enable="YES" 17687514Scjc 177105937Sthomas# 510.ipfdenied 178105937Sthomasdaily_status_security_ipfdenied_enable="YES" 179105937Sthomas 180138061Smlaier# 520.pfdenied 181138061Smlaierdaily_status_security_pfdenied_enable="YES" 182138061Smlaier 18387514Scjc# 550.ipfwlimit 18487514Scjcdaily_status_security_ipfwlimit_enable="YES" 18587514Scjc 186128473Sdarrenr# 610.ipf6denied 187128473Sdarrenrdaily_status_security_ipf6denied_enable="YES" 188128473Sdarrenr 18987514Scjc# 700.kernelmsg 19087514Scjcdaily_status_security_kernelmsg_enable="YES" 19187514Scjc 19287514Scjc# 800.loginfail 19387514Scjcdaily_status_security_loginfail_enable="YES" 19487514Scjc 19587514Scjc# 900.tcpwrap 19687514Scjcdaily_status_security_tcpwrap_enable="YES" 19787514Scjc 19887514Scjc 19961981Sbrian# Weekly options 20061981Sbrian 20165843Sbrian# These options are used by periodic(8) itself to determine what to do 20265843Sbrian# with the output of the sub-programs that are run, and where to send 20365843Sbrian# that output. $weekly_output might be set to /var/log/weekly.log if you 20465843Sbrian# wish to log the weekly output and have the files rotated by newsyslog(8) 20565843Sbrian# 20665843Sbrianweekly_output="root" # user or /file 20765843Sbrianweekly_show_success="YES" # scripts returning 0 20865843Sbrianweekly_show_info="YES" # scripts returning 1 20965843Sbrianweekly_show_badconfig="NO" # scripts returning 2 21065843Sbrian 21161981Sbrian# 310.locate 21261981Sbrianweekly_locate_enable="YES" # Update locate weekly 21361981Sbrian 21461981Sbrian# 320.whatis 21561981Sbrianweekly_whatis_enable="YES" # Update whatis weekly 21661981Sbrian 21761981Sbrian# 330.catman 21861981Sbrianweekly_catman_enable="NO" # Preformat man pages 21961981Sbrian 22061981Sbrian# 340.noid 22161981Sbrianweekly_noid_enable="NO" # Find unowned files 22261981Sbrianweekly_noid_dirs="/" # Look here 22361981Sbrian 22462206Sbrian# 400.status-pkg 22562155Sbrianweekly_status_pkg_enable="NO" # Find out-of-date pkgs 226103948Sbrianpkg_version=pkg_version # Use this program 227196442Skensmithpkg_version_index=/usr/ports/INDEX-9 # Use this index file 22862155Sbrian 22961981Sbrian# 999.local 23061981Sbrianweekly_local="/etc/weekly.local" # Local scripts 23161981Sbrian 23261981Sbrian 23361981Sbrian# Monthly options 23461981Sbrian 23565843Sbrian# These options are used by periodic(8) itself to determine what to do 23665843Sbrian# with the output of the sub-programs that are run, and where to send 23765843Sbrian# that output. $monthly_output might be set to /var/log/monthly.log if you 23865843Sbrian# wish to log the monthly output and have the files rotated by newsyslog(8) 23965843Sbrian# 24065843Sbrianmonthly_output="root" # user or /file 24165843Sbrianmonthly_show_success="YES" # scripts returning 0 24265843Sbrianmonthly_show_info="YES" # scripts returning 1 24365843Sbrianmonthly_show_badconfig="NO" # scripts returning 2 24465843Sbrian 24561981Sbrian# 200.accounting 24661981Sbrianmonthly_accounting_enable="YES" # Login accounting 24761981Sbrian 24861981Sbrian# 999.local 24961981Sbrianmonthly_local="/etc/monthly.local" # Local scripts 25061981Sbrian 25161981Sbrian 25261981Sbrian# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 25361981Sbrian# scripts to source defaults/periodic.conf overrides safely. 25461981Sbrian 25561981Sbrianif [ -z "${source_periodic_confs_defined}" ]; then 25661981Sbrian source_periodic_confs_defined=yes 25761981Sbrian source_periodic_confs () { 25861981Sbrian local i sourced_files 25961981Sbrian 26061981Sbrian for i in ${periodic_conf_files}; do 26161981Sbrian case ${sourced_files} in 26261981Sbrian *:$i:*) 26361981Sbrian ;; 26461981Sbrian *) 26561981Sbrian sourced_files="${sourced_files}:$i:" 26661981Sbrian [ -r $i ] && . $i 26761981Sbrian ;; 26861981Sbrian esac 26961981Sbrian done 27061981Sbrian } 27161981Sbrianfi 272