periodic.conf revision 103948
1219820Sjeff#!/bin/sh 2219820Sjeff# 3219820Sjeff# This is defaults/periodic.conf - a file full of useful variables that 4219820Sjeff# you can set to change the default behaviour of periodic jobs on your 5271127Shselasky# system. You should not edit this file! Put any overrides into one of the 6219820Sjeff# $periodic_conf_files instead and you will be able to update these defaults 7219820Sjeff# later without spamming your local configuration information. 8219820Sjeff# 9219820Sjeff# The $periodic_conf_files files should only contain values which override 10219820Sjeff# values set in this file. This eases the upgrade path when defaults 11219820Sjeff# are changed and new features are added. 12219820Sjeff# 13219820Sjeff# $FreeBSD: head/etc/defaults/periodic.conf 103948 2002-09-25 03:01:42Z brian $ 14219820Sjeff# 15219820Sjeff 16219820Sjeff# What files override these defaults ? 17219820Sjeffperiodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 18219820Sjeff 19219820Sjeff# periodic script dirs 20219820Sjefflocal_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" 21219820Sjeff 22219820Sjeff 23219820Sjeff# Daily options 24219820Sjeff 25219820Sjeff# These options are used by periodic(8) itself to determine what to do 26219820Sjeff# with the output of the sub-programs that are run, and where to send 27219820Sjeff# that output. $daily_output might be set to /var/log/daily.log if you 28219820Sjeff# wish to log the daily output and have the files rotated by newsyslog(8) 29219820Sjeff# 30271127Shselaskydaily_output="root" # user or /file 31271127Shselaskydaily_show_success="YES" # scripts returning 0 32271127Shselaskydaily_show_info="YES" # scripts returning 1 33219820Sjeffdaily_show_badconfig="NO" # scripts returning 2 34219820Sjeff 35219820Sjeff# 100.clean-disks 36219820Sjeffdaily_clean_disks_enable="NO" # Delete files daily 37219820Sjeffdaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 38219820Sjeffdaily_clean_disks_days=3 # If older than this 39219820Sjeffdaily_clean_disks_verbose="YES" # Mention files deleted 40219820Sjeff 41219820Sjeff# 110.clean-tmps 42219820Sjeffdaily_clean_tmps_enable="NO" # Delete stuff daily 43219820Sjeffdaily_clean_tmps_dirs="/tmp" # Delete under here 44219820Sjeffdaily_clean_tmps_days="3" # If not accessed for 45219820Sjeffdaily_clean_tmps_ignore=".X*-lock quota.user quota.group" # Don't delete these 46219820Sjeffdaily_clean_tmps_verbose="YES" # Mention files deleted 47219820Sjeff 48219820Sjeff# 120.clean-preserve 49219820Sjeffdaily_clean_preserve_enable="YES" # Delete files daily 50219820Sjeffdaily_clean_preserve_days=7 # If not modified for 51219820Sjeffdaily_clean_preserve_verbose="YES" # Mention files deleted 52219820Sjeff 53219820Sjeff# 130.clean-msgs 54219820Sjeffdaily_clean_msgs_enable="YES" # Delete msgs daily 55219820Sjeffdaily_clean_msgs_days= # If not modified for 56219820Sjeff 57219820Sjeff# 140.clean-rwho 58219820Sjeffdaily_clean_rwho_enable="YES" # Delete rwho daily 59219820Sjeffdaily_clean_rwho_days=7 # If not modified for 60219820Sjeffdaily_clean_rwho_verbose="YES" # Mention files deleted 61219820Sjeff 62219820Sjeff# 150.clean-hoststat 63219820Sjeffdaily_clean_hoststat_enable="YES" # Delete .hoststat daily 64219820Sjeffdaily_clean_hoststat_days=3 # If not modified for 65219820Sjeffdaily_clean_hoststat_verbose="YES" # Mention files deleted 66219820Sjeff 67219820Sjeff# 200.backup-passwd 68219820Sjeffdaily_backup_passwd_enable="YES" # Backup passwd & group 69219820Sjeff 70219820Sjeff# 210.backup-aliases 71219820Sjeffdaily_backup_aliases_enable="YES" # Backup mail aliases 72219820Sjeff 73219820Sjeff# 220.backup-distfile 74219820Sjeffdaily_backup_distfile_enable="YES" # Backup /etc/Distfile 75219820Sjeff 76219820Sjeff# 300.calendar 77219820Sjeffdaily_calendar_enable="NO" # Run calendar -a 78219820Sjeff 79219820Sjeff# 310.accounting 80219820Sjeffdaily_accounting_enable="YES" # Rotate acct files 81219820Sjeffdaily_accounting_compress="NO" # Gzip rotated files 82219820Sjeffdaily_accounting_flags=-q # Flags to /usr/sbin/sa 83219820Sjeffdaily_accounting_save=3 # How many files to save 84219820Sjeff 85219820Sjeff# 320.distfile 86219820Sjeffdaily_distfile_enable="YES" # Run rdist daily 87219820Sjeff 88219820Sjeff# 330.news 89219820Sjeffdaily_news_expire_enable="YES" # Run news.expire 90219820Sjeff 91219820Sjeff# 400.status-disks 92219820Sjeffdaily_status_disks_enable="YES" # Check disk status 93219820Sjeffdaily_status_disks_df_flags="-k -t nonfs" # df(1) flags for check 94219820Sjeff 95219820Sjeff# 420.status-network 96219820Sjeffdaily_status_network_enable="YES" # Check network status 97219820Sjeffdaily_status_network_usedns="YES" # DNS lookups are ok 98219820Sjeff 99219820Sjeff# 430.status-rwho 100219820Sjeffdaily_status_rwho_enable="YES" # Check system status 101219820Sjeff 102219820Sjeff# 440.status-mailq 103219820Sjeffdaily_status_mailq_enable="YES" # Check mail status 104219820Sjeffdaily_status_mailq_shorten="NO" # Shorten output 105219820Sjeffdaily_status_include_submit_mailq="YES" # Also submit queue 106219820Sjeff 107219820Sjeff# 450.status-security 108219820Sjeffdaily_status_security_enable="YES" # Security check 109219820Sjeff# See "Security options" below for more options 110219820Sjeff 111219820Sjeff# 460.status-mail-rejects 112219820Sjeffdaily_status_mail_rejects_enable="YES" # Check mail rejects 113219820Sjeffdaily_status_mail_rejects_logs=3 # How many logs to check 114219820Sjeff 115219820Sjeff# 470.status-named 116219820Sjeffdaily_status_named_enable="YES" 117219820Sjeffdaily_status_named_usedns="YES" # DNS lookups are ok 118219820Sjeff 119219820Sjeff# 500.queuerun 120219820Sjeffdaily_queuerun_enable="YES" # Run mail queue 121219820Sjeffdaily_submit_queuerun="YES" # Also submit queue 122219820Sjeff 123219820Sjeff# 999.local 124219820Sjeffdaily_local="/etc/daily.local" # Local scripts 125219820Sjeff 126219820Sjeff 127219820Sjeff# Security options 128219820Sjeff 129219820Sjeff# These options are used by the security periodic(8) scripts spawned in 130219820Sjeff# 450.status-security above. 131219820Sjeffdaily_status_security_inline="NO" # Run inline ? 132219820Sjeffdaily_status_security_output="root" # user or /file 133219820Sjeffdaily_status_security_noamd="NO" # Don't check amd mounts 134219820Sjeffdaily_status_security_logdir="/var/log" # Directory for logs 135219820Sjeff 136219820Sjeff# 100.chksetuid 137219820Sjeffdaily_status_security_chksetuid_enable="YES" 138219820Sjeff 139219820Sjeff# 200.chkmounts 140219820Sjeffdaily_status_security_chkmounts_enable="YES" 141219820Sjeff#daily_status_security_chkmounts_ignore="^amd:" # Don't check matching 142219820Sjeff # FS types 143219820Sjeff 144219820Sjeff# 300.chkuid0 145219820Sjeffdaily_status_security_chkuid0_enable="YES" 146219820Sjeff 147219820Sjeff# 400.passwdless 148219820Sjeffdaily_status_security_passwdless_enable="YES" 149219820Sjeff 150219820Sjeff# 500.ipfwdenied 151219820Sjeffdaily_status_security_ipfwdenied_enable="YES" 152219820Sjeff 153219820Sjeff# 550.ipfwlimit 154219820Sjeffdaily_status_security_ipfwlimit_enable="YES" 155219820Sjeff 156# 600.ip6fwdenied 157daily_status_security_ip6fwdenied_enable="YES" 158 159# 650.ip6fwlimit 160daily_status_security_ip6fwlimit_enable="YES" 161 162# 700.kernelmsg 163daily_status_security_kernelmsg_enable="YES" 164 165# 800.loginfail 166daily_status_security_loginfail_enable="YES" 167 168# 900.tcpwrap 169daily_status_security_tcpwrap_enable="YES" 170 171 172# Weekly options 173 174# These options are used by periodic(8) itself to determine what to do 175# with the output of the sub-programs that are run, and where to send 176# that output. $weekly_output might be set to /var/log/weekly.log if you 177# wish to log the weekly output and have the files rotated by newsyslog(8) 178# 179weekly_output="root" # user or /file 180weekly_show_success="YES" # scripts returning 0 181weekly_show_info="YES" # scripts returning 1 182weekly_show_badconfig="NO" # scripts returning 2 183 184# 120.clean-kvmdb 185weekly_clean_kvmdb_enable="YES" # Clean kvmdb weekly 186weekly_clean_kvmdb_days=7 # If not accessed for 187weekly_clean_kvmdb_verbose="YES" # Mention files deleted 188 189# 310.locate 190weekly_locate_enable="YES" # Update locate weekly 191 192# 320.whatis 193weekly_whatis_enable="YES" # Update whatis weekly 194 195# 330.catman 196weekly_catman_enable="NO" # Preformat man pages 197 198# 340.noid 199weekly_noid_enable="NO" # Find unowned files 200weekly_noid_dirs="/" # Look here 201 202# 400.status-pkg 203weekly_status_pkg_enable="NO" # Find out-of-date pkgs 204pkg_version=pkg_version # Use this program 205 206# 999.local 207weekly_local="/etc/weekly.local" # Local scripts 208 209 210# Monthly options 211 212# These options are used by periodic(8) itself to determine what to do 213# with the output of the sub-programs that are run, and where to send 214# that output. $monthly_output might be set to /var/log/monthly.log if you 215# wish to log the monthly output and have the files rotated by newsyslog(8) 216# 217monthly_output="root" # user or /file 218monthly_show_success="YES" # scripts returning 0 219monthly_show_info="YES" # scripts returning 1 220monthly_show_badconfig="NO" # scripts returning 2 221 222# 200.accounting 223monthly_accounting_enable="YES" # Login accounting 224 225# 999.local 226monthly_local="/etc/monthly.local" # Local scripts 227 228 229# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 230# scripts to source defaults/periodic.conf overrides safely. 231 232if [ -z "${source_periodic_confs_defined}" ]; then 233 source_periodic_confs_defined=yes 234 source_periodic_confs () { 235 local i sourced_files 236 237 for i in ${periodic_conf_files}; do 238 case ${sourced_files} in 239 *:$i:*) 240 ;; 241 *) 242 sourced_files="${sourced_files}:$i:" 243 [ -r $i ] && . $i 244 ;; 245 esac 246 done 247 } 248fi 249