periodic.conf revision 62206
1120441Sbms#!/bin/sh 2120441Sbms# 3120441Sbms# This is defaults/periodic.conf - a file full of useful variables that 4120441Sbms# you can set to change the default behaviour of periodic jobs on your 5120441Sbms# system. You should not edit this file! Put any overrides into one of the 6120441Sbms# $periodic_conf_files instead and you will be able to update these defaults 7120441Sbms# later without spamming your local configuration information. 8120441Sbms# 9120441Sbms# The $periodic_conf_files files should only contain values which override 10120441Sbms# values set in this file. This eases the upgrade path when defaults 11120441Sbms# are changed and new features are added. 12120441Sbms# 13120441Sbms# $FreeBSD: head/etc/defaults/periodic.conf 62206 2000-06-28 06:51:37Z brian $ 14120441Sbms# 15120441Sbms 16120441Sbms# What files override these defaults ? 17120441Sbmsperiodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 18120441Sbms 19120441Sbms# periodic script dirs 20120441Sbmslocal_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" 21120441Sbms 22120441Sbms 23120441Sbms# Daily options 24120441Sbms 25120441Sbms# 100.clean-disks 26120441Sbmsdaily_clean_disks_enable="NO" # Delete files daily 27120441Sbmsdaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 28120441Sbmsdaily_clean_disks_days=3 # If older than this 29120441Sbmsdaily_clean_disks_verbose="YES" # Mention files deleted 30131681Sru 31120441Sbms# 110.clean-tmps 32120441Sbmsdaily_clean_tmps_enable="NO" # Delete stuff daily 33120441Sbmsdaily_clean_tmps_dirs="/tmp" # Delete under here 34120441Sbmsdaily_clean_tmps_days="3" # If not accessed for 35120441Sbmsdaily_clean_tmps_ignore=".X*-lock quota.user quota.group" # Don't delete these 36120441Sbmsdaily_clean_tmps_verbose="YES" # Mention files deleted 37120441Sbms 38120441Sbms# 120.clean-preserve 39120441Sbmsdaily_clean_preserve_enable="YES" # Delete files daily 40120441Sbmsdaily_clean_preserve_days=7 # If not modified for 41120441Sbmsdaily_clean_preserve_verbose="YES" # Mention files deleted 42120441Sbms 43120441Sbms# 130.clean-msgs 44120441Sbmsdaily_clean_msgs_enable="YES" # Delete msgs daily 45120441Sbmsdaily_clean_msgs_days= # If not modified for 46120441Sbms 47120441Sbms# 140.clean-rwho 48120441Sbmsdaily_clean_rwho_enable="YES" # Delete rwho daily 49120441Sbmsdaily_clean_rwho_days=7 # If not modified for 50120441Sbmsdaily_clean_rwho_verbose="YES" # Mention files deleted 51120441Sbms 52120441Sbms# 150.clean-hoststat 53120441Sbmsdaily_clean_hoststat_enable="YES" # Delete .hoststat daily 54120441Sbmsdaily_clean_hoststat_days=3 # If not modified for 55120441Sbmsdaily_clean_hoststat_verbose="YES" # Mention files deleted 56120441Sbms 57120441Sbms# 200.backup-passwd 58120441Sbmsdaily_backup_passwd_enable="YES" # Backup passwd & group 59131642Sru 60120441Sbms# 210.backup-aliases 61120441Sbmsdaily_backup_aliases_enable="YES" # Backup mail aliases 62131642Sru 63120441Sbms# 220.backup-distfile 64120441Sbmsdaily_backup_distfile_enable="YES" # Backup distfile 65120441Sbms 66120441Sbms# 300.calendar 67120441Sbmsdaily_calendar_enable="NO" # Run calendar -a 68120441Sbms 69120441Sbms# 310.accounting 70120441Sbmsdaily_accounting_enable="YES" # Rotate acct files 71120441Sbmsdaily_accounting_compress="NO" # Gzip rotated files 72120441Sbms 73# 320.distfile 74daily_distfile_enable="YES" # Run rdist daily 75 76# 330.news 77daily_news_expire_enable="YES" # Run news.expire 78 79# 340.uucp 80daily_uuclean_enable="YES" # Run uuclean.daily 81 82# 400.status-disks 83daily_status_disks_enable="YES" # Check disk status 84 85# 410.status-uucp 86daily_status_uucp_enable="YES" # Check uucp status 87 88# 420.status-network 89daily_status_network_enable="YES" # Check network status 90daily_status_network_usedns="YES" # DNS lookups are ok 91 92# 430.status-rwho 93daily_status_rwho_enable="YES" # Check system status 94 95# 440.status-mailq 96daily_status_mailq_enable="YES" # Check mail status 97daily_status_mailq_shorten="NO" # Shorten output 98 99# 450.status-security 100daily_status_security_enable="YES" # Security check 101daily_status_security_inline="NO" # Run inline ? 102daily_status_security_noamd="NO" # Don't check amd mounts 103daily_status_security_nomfs="NO" # Don't check mfs mounts 104 105# 460.status-mail-rejects 106daily_status_mail_rejects_enable="YES" # Check mail rejects 107 108# 999.local 109daily_local="/etc/daily.local" # Local scripts 110 111 112# Weekly options 113 114# 120.clean-kvmdb 115weekly_clean_kvmdb_enable="YES" # Clean kvmdb weekly 116weekly_clean_kvmdb_days=7 # If not accessed for 117weekly_clean_kvmdb_verbose="YES" # Mention files deleted 118 119# 300.uucp 120weekly_uucp_enable="YES" # Clean uucp weekly 121 122# 310.locate 123weekly_locate_enable="YES" # Update locate weekly 124 125# 320.whatis 126weekly_whatis_enable="YES" # Update whatis weekly 127 128# 330.catman 129weekly_catman_enable="NO" # Preformat man pages 130 131# 340.noid 132weekly_noid_enable="NO" # Find unowned files 133weekly_noid_dirs="/" # Look here 134 135# 400.status-pkg 136weekly_status_pkg_enable="NO" # Find out-of-date pkgs 137 138# 999.local 139weekly_local="/etc/weekly.local" # Local scripts 140 141 142# Monthly options 143 144# 200.accounting 145monthly_accounting_enable="YES" # Login accounting 146 147# 999.local 148monthly_local="/etc/monthly.local" # Local scripts 149 150 151# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 152# scripts to source defaults/periodic.conf overrides safely. 153 154if [ -z "${source_periodic_confs_defined}" ]; then 155 source_periodic_confs_defined=yes 156 source_periodic_confs () { 157 local i sourced_files 158 159 for i in ${periodic_conf_files}; do 160 case ${sourced_files} in 161 *:$i:*) 162 ;; 163 *) 164 sourced_files="${sourced_files}:$i:" 165 [ -r $i ] && . $i 166 ;; 167 esac 168 done 169 } 170fi 171