periodic.conf revision 123498
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# 1361981Sbrian# $FreeBSD: head/etc/defaults/periodic.conf 123498 2003-12-12 21:23:27Z jesper $ 1461981Sbrian# 1561981Sbrian 1661981Sbrian# What files override these defaults ? 1761981Sbrianperiodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 1861981Sbrian 1961981Sbrian# periodic script dirs 2061981Sbrianlocal_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" 2161981Sbrian 2261981Sbrian 2361981Sbrian# Daily options 2461981Sbrian 2565843Sbrian# These options are used by periodic(8) itself to determine what to do 2665843Sbrian# with the output of the sub-programs that are run, and where to send 2765843Sbrian# that output. $daily_output might be set to /var/log/daily.log if you 2865843Sbrian# wish to log the daily output and have the files rotated by newsyslog(8) 2965843Sbrian# 3065843Sbriandaily_output="root" # user or /file 3165843Sbriandaily_show_success="YES" # scripts returning 0 3265843Sbriandaily_show_info="YES" # scripts returning 1 3365843Sbriandaily_show_badconfig="NO" # scripts returning 2 3465843Sbrian 3561981Sbrian# 100.clean-disks 3661981Sbriandaily_clean_disks_enable="NO" # Delete files daily 3761981Sbriandaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 3861981Sbriandaily_clean_disks_days=3 # If older than this 3961981Sbriandaily_clean_disks_verbose="YES" # Mention files deleted 4061981Sbrian 4161981Sbrian# 110.clean-tmps 4261981Sbriandaily_clean_tmps_enable="NO" # Delete stuff daily 4361981Sbriandaily_clean_tmps_dirs="/tmp" # Delete under here 4461981Sbriandaily_clean_tmps_days="3" # If not accessed for 4561981Sbriandaily_clean_tmps_ignore=".X*-lock quota.user quota.group" # Don't delete these 4661981Sbriandaily_clean_tmps_verbose="YES" # Mention files deleted 4761981Sbrian 4861981Sbrian# 120.clean-preserve 4961981Sbriandaily_clean_preserve_enable="YES" # Delete files daily 5061981Sbriandaily_clean_preserve_days=7 # If not modified for 5161981Sbriandaily_clean_preserve_verbose="YES" # Mention files deleted 5261981Sbrian 5361981Sbrian# 130.clean-msgs 5461981Sbriandaily_clean_msgs_enable="YES" # Delete msgs daily 5561981Sbriandaily_clean_msgs_days= # If not modified for 5661981Sbrian 5761981Sbrian# 140.clean-rwho 5861981Sbriandaily_clean_rwho_enable="YES" # Delete rwho daily 5961981Sbriandaily_clean_rwho_days=7 # If not modified for 6061981Sbriandaily_clean_rwho_verbose="YES" # Mention files deleted 6161981Sbrian 6261981Sbrian# 150.clean-hoststat 63108959Swollmandaily_clean_hoststat_enable="YES" # Purge sendmail host 64108959Swollman # status cache daily 6561981Sbrian 6661981Sbrian# 200.backup-passwd 6761981Sbriandaily_backup_passwd_enable="YES" # Backup passwd & group 6861981Sbrian 6961981Sbrian# 210.backup-aliases 7061981Sbriandaily_backup_aliases_enable="YES" # Backup mail aliases 7161981Sbrian 7261981Sbrian# 300.calendar 7361981Sbriandaily_calendar_enable="NO" # Run calendar -a 7461981Sbrian 7561981Sbrian# 310.accounting 7661981Sbriandaily_accounting_enable="YES" # Rotate acct files 7762054Sbriandaily_accounting_compress="NO" # Gzip rotated files 7877496Sbriandaily_accounting_flags=-q # Flags to /usr/sbin/sa 7977492Sbriandaily_accounting_save=3 # How many files to save 8061981Sbrian 8161981Sbrian# 330.news 8261981Sbriandaily_news_expire_enable="YES" # Run news.expire 8361981Sbrian 8461981Sbrian# 400.status-disks 8561981Sbriandaily_status_disks_enable="YES" # Check disk status 8662644Ssheldonhdaily_status_disks_df_flags="-k -t nonfs" # df(1) flags for check 8761981Sbrian 88121620Sjesper# 405.status-ata_raid 89123498Sjesperdaily_status_ata_raid_enable="NO" # Check ATA raid status 90121620Sjesper 9161981Sbrian# 420.status-network 9261981Sbriandaily_status_network_enable="YES" # Check network status 9361981Sbriandaily_status_network_usedns="YES" # DNS lookups are ok 9461981Sbrian 9561981Sbrian# 430.status-rwho 9661981Sbriandaily_status_rwho_enable="YES" # Check system status 9761981Sbrian 9861981Sbrian# 440.status-mailq 9961981Sbriandaily_status_mailq_enable="YES" # Check mail status 10061981Sbriandaily_status_mailq_shorten="NO" # Shorten output 10194342Sgshapirodaily_status_include_submit_mailq="YES" # Also submit queue 10261981Sbrian 10361981Sbrian# 450.status-security 10461981Sbriandaily_status_security_enable="YES" # Security check 10587514Scjc# See "Security options" below for more options 10661981Sbrian 10761981Sbrian# 460.status-mail-rejects 10861981Sbriandaily_status_mail_rejects_enable="YES" # Check mail rejects 10962274Sbriandaily_status_mail_rejects_logs=3 # How many logs to check 11061981Sbrian 11175809Sdirk# 470.status-named 11275809Sdirkdaily_status_named_enable="YES" 11375809Sdirkdaily_status_named_usedns="YES" # DNS lookups are ok 11475809Sdirk 11572677Speter# 500.queuerun 11672677Speterdaily_queuerun_enable="YES" # Run mail queue 11794342Sgshapirodaily_submit_queuerun="YES" # Also submit queue 11872677Speter 11961981Sbrian# 999.local 12061981Sbriandaily_local="/etc/daily.local" # Local scripts 12161981Sbrian 12261981Sbrian 12387514Scjc# Security options 12487514Scjc 125101607Sfanf# These options are used by the security periodic(8) scripts spawned in 12687514Scjc# 450.status-security above. 12787514Scjcdaily_status_security_inline="NO" # Run inline ? 12887514Scjcdaily_status_security_output="root" # user or /file 12987514Scjcdaily_status_security_noamd="NO" # Don't check amd mounts 13087514Scjcdaily_status_security_logdir="/var/log" # Directory for logs 13187514Scjc 13287514Scjc# 100.chksetuid 13387514Scjcdaily_status_security_chksetuid_enable="YES" 13487514Scjc 13587514Scjc# 200.chkmounts 13687514Scjcdaily_status_security_chkmounts_enable="YES" 13787514Scjc#daily_status_security_chkmounts_ignore="^amd:" # Don't check matching 13887514Scjc # FS types 13987514Scjc 14087514Scjc# 300.chkuid0 14187514Scjcdaily_status_security_chkuid0_enable="YES" 14287514Scjc 14387514Scjc# 400.passwdless 14487514Scjcdaily_status_security_passwdless_enable="YES" 14587514Scjc 14687514Scjc# 500.ipfwdenied 14787514Scjcdaily_status_security_ipfwdenied_enable="YES" 14887514Scjc 149105937Sthomas# 510.ipfdenied 150105937Sthomasdaily_status_security_ipfdenied_enable="YES" 151105937Sthomas 15287514Scjc# 550.ipfwlimit 15387514Scjcdaily_status_security_ipfwlimit_enable="YES" 15487514Scjc 15587514Scjc# 600.ip6fwdenied 15687514Scjcdaily_status_security_ip6fwdenied_enable="YES" 15787514Scjc 15887514Scjc# 650.ip6fwlimit 15987514Scjcdaily_status_security_ip6fwlimit_enable="YES" 16087514Scjc 16187514Scjc# 700.kernelmsg 16287514Scjcdaily_status_security_kernelmsg_enable="YES" 16387514Scjc 16487514Scjc# 800.loginfail 16587514Scjcdaily_status_security_loginfail_enable="YES" 16687514Scjc 16787514Scjc# 900.tcpwrap 16887514Scjcdaily_status_security_tcpwrap_enable="YES" 16987514Scjc 17087514Scjc 17161981Sbrian# Weekly options 17261981Sbrian 17365843Sbrian# These options are used by periodic(8) itself to determine what to do 17465843Sbrian# with the output of the sub-programs that are run, and where to send 17565843Sbrian# that output. $weekly_output might be set to /var/log/weekly.log if you 17665843Sbrian# wish to log the weekly output and have the files rotated by newsyslog(8) 17765843Sbrian# 17865843Sbrianweekly_output="root" # user or /file 17965843Sbrianweekly_show_success="YES" # scripts returning 0 18065843Sbrianweekly_show_info="YES" # scripts returning 1 18165843Sbrianweekly_show_badconfig="NO" # scripts returning 2 18265843Sbrian 18361981Sbrian# 120.clean-kvmdb 18461981Sbrianweekly_clean_kvmdb_enable="YES" # Clean kvmdb weekly 18561981Sbrianweekly_clean_kvmdb_days=7 # If not accessed for 18661981Sbrianweekly_clean_kvmdb_verbose="YES" # Mention files deleted 18761981Sbrian 18861981Sbrian# 310.locate 18961981Sbrianweekly_locate_enable="YES" # Update locate weekly 19061981Sbrian 19161981Sbrian# 320.whatis 19261981Sbrianweekly_whatis_enable="YES" # Update whatis weekly 19361981Sbrian 19461981Sbrian# 330.catman 19561981Sbrianweekly_catman_enable="NO" # Preformat man pages 19661981Sbrian 19761981Sbrian# 340.noid 19861981Sbrianweekly_noid_enable="NO" # Find unowned files 19961981Sbrianweekly_noid_dirs="/" # Look here 20061981Sbrian 20162206Sbrian# 400.status-pkg 20262155Sbrianweekly_status_pkg_enable="NO" # Find out-of-date pkgs 203103948Sbrianpkg_version=pkg_version # Use this program 20462155Sbrian 20561981Sbrian# 999.local 20661981Sbrianweekly_local="/etc/weekly.local" # Local scripts 20761981Sbrian 20861981Sbrian 20961981Sbrian# Monthly options 21061981Sbrian 21165843Sbrian# These options are used by periodic(8) itself to determine what to do 21265843Sbrian# with the output of the sub-programs that are run, and where to send 21365843Sbrian# that output. $monthly_output might be set to /var/log/monthly.log if you 21465843Sbrian# wish to log the monthly output and have the files rotated by newsyslog(8) 21565843Sbrian# 21665843Sbrianmonthly_output="root" # user or /file 21765843Sbrianmonthly_show_success="YES" # scripts returning 0 21865843Sbrianmonthly_show_info="YES" # scripts returning 1 21965843Sbrianmonthly_show_badconfig="NO" # scripts returning 2 22065843Sbrian 22161981Sbrian# 200.accounting 22261981Sbrianmonthly_accounting_enable="YES" # Login accounting 22361981Sbrian 22461981Sbrian# 999.local 22561981Sbrianmonthly_local="/etc/monthly.local" # Local scripts 22661981Sbrian 22761981Sbrian 22861981Sbrian# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 22961981Sbrian# scripts to source defaults/periodic.conf overrides safely. 23061981Sbrian 23161981Sbrianif [ -z "${source_periodic_confs_defined}" ]; then 23261981Sbrian source_periodic_confs_defined=yes 23361981Sbrian source_periodic_confs () { 23461981Sbrian local i sourced_files 23561981Sbrian 23661981Sbrian for i in ${periodic_conf_files}; do 23761981Sbrian case ${sourced_files} in 23861981Sbrian *:$i:*) 23961981Sbrian ;; 24061981Sbrian *) 24161981Sbrian sourced_files="${sourced_files}:$i:" 24261981Sbrian [ -r $i ] && . $i 24361981Sbrian ;; 24461981Sbrian esac 24561981Sbrian done 24661981Sbrian } 24761981Sbrianfi 248