periodic.conf revision 205509
1181053Srwatson#!/bin/sh 2188313Srwatson# 3155192Srwatson# This is defaults/periodic.conf - a file full of useful variables that 4155192Srwatson# you can set to change the default behaviour of periodic jobs on your 5155192Srwatson# system. You should not edit this file! Put any overrides into one of the 6155192Srwatson# $periodic_conf_files instead and you will be able to update these defaults 7155192Srwatson# later without spamming your local configuration information. 8155192Srwatson# 9155192Srwatson# The $periodic_conf_files files should only contain values which override 10155192Srwatson# values set in this file. This eases the upgrade path when defaults 11155192Srwatson# are changed and new features are added. 12155192Srwatson# 13180701Srwatson# For a more detailed explanation of all the periodic.conf variables, please 14155192Srwatson# refer to the periodic.conf(5) manual page. 15155192Srwatson# 16155192Srwatson# $FreeBSD: head/etc/defaults/periodic.conf 205509 2010-03-23 06:19:44Z joerg $ 17155192Srwatson# 18155192Srwatson 19155192Srwatson# What files override these defaults ? 20155192Srwatsonperiodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 21155192Srwatson 22155192Srwatson# periodic script dirs 23155192Srwatsonlocal_periodic="/usr/local/etc/periodic" 24155192Srwatson 25155192Srwatson 26155192Srwatson# Daily options 27155192Srwatson 28155192Srwatson# These options are used by periodic(8) itself to determine what to do 29155192Srwatson# with the output of the sub-programs that are run, and where to send 30155192Srwatson# that output. $daily_output might be set to /var/log/daily.log if you 31155192Srwatson# wish to log the daily output and have the files rotated by newsyslog(8) 32155192Srwatson# 33155192Srwatsondaily_output="root" # user or /file 34155192Srwatsondaily_show_success="YES" # scripts returning 0 35155192Srwatsondaily_show_info="YES" # scripts returning 1 36155192Srwatsondaily_show_badconfig="NO" # scripts returning 2 37156882Srwatson 38156882Srwatson# 100.clean-disks 39155192Srwatsondaily_clean_disks_enable="NO" # Delete files daily 40155192Srwatsondaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 41155192Srwatsondaily_clean_disks_days=3 # If older than this 42155192Srwatsondaily_clean_disks_verbose="YES" # Mention files deleted 43155192Srwatson 44255219Spjd# 110.clean-tmps 45155192Srwatsondaily_clean_tmps_enable="NO" # Delete stuff daily 46155192Srwatsondaily_clean_tmps_dirs="/tmp" # Delete under here 47155192Srwatsondaily_clean_tmps_days="3" # If not accessed for 48155192Srwatsondaily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix" 49155192Srwatsondaily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group .snap" 50155192Srwatson # Don't delete these 51155192Srwatsondaily_clean_tmps_verbose="YES" # Mention files deleted 52155192Srwatson 53155192Srwatson# 120.clean-preserve 54195177Sssondaily_clean_preserve_enable="YES" # Delete files daily 55155192Srwatsondaily_clean_preserve_days=7 # If not modified for 56155192Srwatsondaily_clean_preserve_verbose="YES" # Mention files deleted 57155192Srwatson 58156889Srwatson# 130.clean-msgs 59156889Srwatsondaily_clean_msgs_enable="YES" # Delete msgs daily 60155192Srwatsondaily_clean_msgs_days= # If not modified for 61155192Srwatson 62155192Srwatson# 140.clean-rwho 63155192Srwatsondaily_clean_rwho_enable="YES" # Delete rwho daily 64155192Srwatsondaily_clean_rwho_days=7 # If not modified for 65155192Srwatsondaily_clean_rwho_verbose="YES" # Mention files deleted 66161813Swsalamon 67161813Swsalamon# 150.clean-hoststat 68155192Srwatsondaily_clean_hoststat_enable="YES" # Purge sendmail host 69155192Srwatson # status cache daily 70155192Srwatson 71155192Srwatson# 200.backup-passwd 72155192Srwatsondaily_backup_passwd_enable="YES" # Backup passwd & group 73156889Srwatson 74156889Srwatson# 210.backup-aliases 75156889Srwatsondaily_backup_aliases_enable="YES" # Backup mail aliases 76155192Srwatson 77155192Srwatson# 300.calendar 78159269Srwatsondaily_calendar_enable="NO" # Run calendar -a 79159269Srwatson 80159269Srwatson# 310.accounting 81155192Srwatsondaily_accounting_enable="YES" # Rotate acct files 82155192Srwatsondaily_accounting_compress="NO" # Gzip rotated files 83155192Srwatsondaily_accounting_flags=-q # Flags to /usr/sbin/sa 84155192Srwatsondaily_accounting_save=3 # How many files to save 85159269Srwatson 86159269Srwatson# 330.news 87159269Srwatsondaily_news_expire_enable="YES" # Run news.expire 88162380Scsjp 89162380Scsjp# 400.status-disks 90162380Scsjpdaily_status_disks_enable="YES" # Check disk status 91155192Srwatsondaily_status_disks_df_flags="-l -h" # df(1) flags for check 92155192Srwatson 93155192Srwatson# 404.status-zfs 94155192Srwatsondaily_status_zfs_enable="NO" # Check ZFS 95155192Srwatson 96155192Srwatson# 405.status-ata_raid 97155192Srwatsondaily_status_ata_raid_enable="NO" # Check ATA raid status 98155192Srwatson 99156889Srwatson# 406.status-gmirror 100156889Srwatsondaily_status_gmirror_enable="NO" # Check gmirror(8) 101156889Srwatson 102156889Srwatson# 407.status-graid3 103156889Srwatsondaily_status_graid3_enable="NO" # Check graid3(8) 104156889Srwatson 105156889Srwatson# 408.status-gstripe 106155192Srwatsondaily_status_gstripe_enable="NO" # Check gstripe(8) 107155192Srwatson 108155192Srwatson# 409.status-gconcat 109195177Sssondaily_status_gconcat_enable="NO" # Check gconcat(8) 110195177Ssson 111155192Srwatson# 420.status-network 112155192Srwatsondaily_status_network_enable="YES" # Check network status 113155192Srwatsondaily_status_network_usedns="YES" # DNS lookups are ok 114180709Srwatson 115155192Srwatson# 430.status-rwho 116155192Srwatsondaily_status_rwho_enable="YES" # Check system status 117156889Srwatson 118156889Srwatson# 440.status-mailq 119156889Srwatsondaily_status_mailq_enable="YES" # Check mail status 120156889Srwatsondaily_status_mailq_shorten="NO" # Shorten output 121155192Srwatsondaily_status_include_submit_mailq="YES" # Also submit queue 122155192Srwatson 123191270Srwatson# 450.status-security 124191270Srwatsondaily_status_security_enable="YES" # Security check 125191270Srwatson# See "Security options" below for more options 126191270Srwatson 127191270Srwatson# 460.status-mail-rejects 128191270Srwatsondaily_status_mail_rejects_enable="YES" # Check mail rejects 129191270Srwatsondaily_status_mail_rejects_logs=3 # How many logs to check 130191270Srwatsondaily_status_mail_rejects_shorten="NO" # Shorten output 131191270Srwatson 132191270Srwatson# 470.status-named 133191270Srwatsondaily_status_named_enable="YES" 134191270Srwatsondaily_status_named_usedns="YES" # DNS lookups are ok 135191270Srwatson 136155192Srwatson# 480.status-ntpd 137155192Srwatsondaily_status_ntpd_enable="NO" # Check NTP status 138191270Srwatson 139191270Srwatson# 500.queuerun 140191270Srwatsondaily_queuerun_enable="YES" # Run mail queue 141155192Srwatsondaily_submit_queuerun="YES" # Also submit queue 142191270Srwatson 143191270Srwatson# 999.local 144155192Srwatsondaily_local="/etc/daily.local" # Local scripts 145155192Srwatson 146155192Srwatson 147155192Srwatson# Security options 148155192Srwatson 149155192Srwatson# These options are used by the security periodic(8) scripts spawned in 150191270Srwatson# 450.status-security above. 151155192Srwatsondaily_status_security_inline="NO" # Run inline ? 152155192Srwatsondaily_status_security_output="root" # user or /file 153184856Scsjpdaily_status_security_noamd="NO" # Don't check amd mounts 154155192Srwatsondaily_status_security_logdir="/var/log" # Directory for logs 155155192Srwatsondaily_status_security_diff_flags="-b -u" # flags for diff output 156155192Srwatson 157156889Srwatson# 100.chksetuid 158156889Srwatsondaily_status_security_chksetuid_enable="YES" 159156889Srwatson 160155192Srwatson# 200.chkmounts 161155192Srwatsondaily_status_security_chkmounts_enable="YES" 162155192Srwatson#daily_status_security_chkmounts_ignore="^amd:" # Don't check matching 163155192Srwatson # FS types 164155192Srwatson 165155192Srwatson# 300.chkuid0 166155192Srwatsondaily_status_security_chkuid0_enable="YES" 167155192Srwatson 168155192Srwatson# 400.passwdless 169155192Srwatsondaily_status_security_passwdless_enable="YES" 170155192Srwatson 171155192Srwatson# 410.logincheck 172155192Srwatsondaily_status_security_logincheck_enable="YES" 173156889Srwatson 174156889Srwatson# 500.ipfwdenied 175156889Srwatsondaily_status_security_ipfwdenied_enable="YES" 176156889Srwatson 177156889Srwatson# 510.ipfdenied 178156889Srwatsondaily_status_security_ipfdenied_enable="YES" 179156889Srwatson 180156889Srwatson# 520.pfdenied 181168688Scsjpdaily_status_security_pfdenied_enable="YES" 182156889Srwatson 183155192Srwatson# 550.ipfwlimit 184155192Srwatsondaily_status_security_ipfwlimit_enable="YES" 185156889Srwatson 186156889Srwatson# 610.ipf6denied 187156889Srwatsondaily_status_security_ipf6denied_enable="YES" 188156889Srwatson 189156889Srwatson# 700.kernelmsg 190156889Srwatsondaily_status_security_kernelmsg_enable="YES" 191156889Srwatson 192156889Srwatson# 800.loginfail 193156889Srwatsondaily_status_security_loginfail_enable="YES" 194168688Scsjp 195156889Srwatson# 900.tcpwrap 196156889Srwatsondaily_status_security_tcpwrap_enable="YES" 197156889Srwatson 198156889Srwatson 199156889Srwatson# Weekly options 200195925Srwatson 201195925Srwatson# These options are used by periodic(8) itself to determine what to do 202156889Srwatson# with the output of the sub-programs that are run, and where to send 203156889Srwatson# that output. $weekly_output might be set to /var/log/weekly.log if you 204156889Srwatson# wish to log the weekly output and have the files rotated by newsyslog(8) 205156889Srwatson# 206246691Spjdweekly_output="root" # user or /file 207156889Srwatsonweekly_show_success="YES" # scripts returning 0 208156889Srwatsonweekly_show_info="YES" # scripts returning 1 209156889Srwatsonweekly_show_badconfig="NO" # scripts returning 2 210156889Srwatson 211156889Srwatson# 310.locate 212156889Srwatsonweekly_locate_enable="YES" # Update locate weekly 213156889Srwatson 214156889Srwatson# 320.whatis 215156889Srwatsonweekly_whatis_enable="YES" # Update whatis weekly 216156889Srwatson 217156889Srwatson# 330.catman 218156889Srwatsonweekly_catman_enable="NO" # Preformat man pages 219156889Srwatson 220156889Srwatson# 340.noid 221156889Srwatsonweekly_noid_enable="NO" # Find unowned files 222156889Srwatsonweekly_noid_dirs="/" # Look here 223246691Spjd 224156889Srwatson# 400.status-pkg 225156889Srwatsonweekly_status_pkg_enable="NO" # Find out-of-date pkgs 226161813Swsalamonpkg_version=pkg_version # Use this program 227161813Swsalamonpkg_version_index=/usr/ports/INDEX-9 # Use this index file 228161813Swsalamon 229161813Swsalamon# 999.local 230156889Srwatsonweekly_local="/etc/weekly.local" # Local scripts 231156889Srwatson 232164011Scsjp 233224181Sjonathan# Monthly options 234247602Spjd 235245573Scsjp# These options are used by periodic(8) itself to determine what to do 236155192Srwatson# with the output of the sub-programs that are run, and where to send 237155192Srwatson# that output. $monthly_output might be set to /var/log/monthly.log if you 238155192Srwatson# wish to log the monthly output and have the files rotated by newsyslog(8) 239155192Srwatson# 240155192Srwatsonmonthly_output="root" # user or /file 241155192Srwatsonmonthly_show_success="YES" # scripts returning 0 242155192Srwatsonmonthly_show_info="YES" # scripts returning 1 243195939Srwatsonmonthly_show_badconfig="NO" # scripts returning 2 244195939Srwatson 245195939Srwatson# 200.accounting 246195939Srwatsonmonthly_accounting_enable="YES" # Login accounting 247195939Srwatson 248195939Srwatson# 999.local 249195939Srwatsonmonthly_local="/etc/monthly.local" # Local scripts 250195939Srwatson 251195939Srwatson 252195939Srwatson# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 253195939Srwatson# scripts to source defaults/periodic.conf overrides safely. 254195939Srwatson 255195939Srwatsonif [ -z "${source_periodic_confs_defined}" ]; then 256195939Srwatson source_periodic_confs_defined=yes 257195939Srwatson source_periodic_confs () { 258195939Srwatson local i sourced_files 259195939Srwatson 260195939Srwatson for i in ${periodic_conf_files}; do 261195939Srwatson case ${sourced_files} in 262195939Srwatson *:$i:*) 263195939Srwatson ;; 264195939Srwatson *) 265195939Srwatson sourced_files="${sourced_files}:$i:" 266195939Srwatson [ -r $i ] && . $i 267195939Srwatson ;; 268195939Srwatson esac 269195939Srwatson done 270195939Srwatson } 271195939Srwatsonfi 272195939Srwatson