periodic.conf revision 62155
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 62155 2000-06-27 11:20:08Z brian $ 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 2561981Sbrian# 100.clean-disks 2661981Sbriandaily_clean_disks_enable="NO" # Delete files daily 2761981Sbriandaily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*" 2861981Sbriandaily_clean_disks_days=3 # If older than this 2961981Sbriandaily_clean_disks_verbose="YES" # Mention files deleted 3061981Sbrian 3161981Sbrian# 110.clean-tmps 3261981Sbriandaily_clean_tmps_enable="NO" # Delete stuff daily 3361981Sbriandaily_clean_tmps_dirs="/tmp" # Delete under here 3461981Sbriandaily_clean_tmps_days="3" # If not accessed for 3561981Sbriandaily_clean_tmps_ignore=".X*-lock quota.user quota.group" # Don't delete these 3661981Sbriandaily_clean_tmps_verbose="YES" # Mention files deleted 3761981Sbrian 3861981Sbrian# 120.clean-preserve 3961981Sbriandaily_clean_preserve_enable="YES" # Delete files daily 4061981Sbriandaily_clean_preserve_days=7 # If not modified for 4161981Sbriandaily_clean_preserve_verbose="YES" # Mention files deleted 4261981Sbrian 4361981Sbrian# 130.clean-msgs 4461981Sbriandaily_clean_msgs_enable="YES" # Delete msgs daily 4561981Sbriandaily_clean_msgs_days= # If not modified for 4661981Sbrian 4761981Sbrian# 140.clean-rwho 4861981Sbriandaily_clean_rwho_enable="YES" # Delete rwho daily 4961981Sbriandaily_clean_rwho_days=7 # If not modified for 5061981Sbriandaily_clean_rwho_verbose="YES" # Mention files deleted 5161981Sbrian 5261981Sbrian# 150.clean-hoststat 5361981Sbriandaily_clean_hoststat_enable="YES" # Delete .hoststat daily 5461981Sbriandaily_clean_hoststat_days=3 # If not modified for 5561981Sbriandaily_clean_hoststat_verbose="YES" # Mention files deleted 5661981Sbrian 5761981Sbrian# 200.backup-passwd 5861981Sbriandaily_backup_passwd_enable="YES" # Backup passwd & group 5961981Sbrian 6061981Sbrian# 210.backup-aliases 6161981Sbriandaily_backup_aliases_enable="YES" # Backup mail aliases 6261981Sbrian 6361981Sbrian# 220.backup-distfile 6461981Sbriandaily_backup_distfile_enable="YES" # Backup distfile 6561981Sbrian 6661981Sbrian# 300.calendar 6761981Sbriandaily_calendar_enable="NO" # Run calendar -a 6861981Sbrian 6961981Sbrian# 310.accounting 7061981Sbriandaily_accounting_enable="YES" # Rotate acct files 7162054Sbriandaily_accounting_compress="NO" # Gzip rotated files 7261981Sbrian 7361981Sbrian# 320.distfile 7461981Sbriandaily_distfile_enable="YES" # Run rdist daily 7561981Sbrian 7661981Sbrian# 330.news 7761981Sbriandaily_news_expire_enable="YES" # Run news.expire 7861981Sbrian 7961981Sbrian# 340.uucp 8061981Sbriandaily_uuclean_enable="YES" # Run uuclean.daily 8161981Sbrian 8261981Sbrian# 400.status-disks 8361981Sbriandaily_status_disks_enable="YES" # Check disk status 8461981Sbrian 8561981Sbrian# 410.status-uucp 8661981Sbriandaily_status_uucp_enable="YES" # Check uucp status 8761981Sbrian 8861981Sbrian# 420.status-network 8961981Sbriandaily_status_network_enable="YES" # Check network status 9061981Sbriandaily_status_network_usedns="YES" # DNS lookups are ok 9161981Sbrian 9261981Sbrian# 430.status-rwho 9361981Sbriandaily_status_rwho_enable="YES" # Check system status 9461981Sbrian 9561981Sbrian# 440.status-mailq 9661981Sbriandaily_status_mailq_enable="YES" # Check mail status 9761981Sbriandaily_status_mailq_shorten="NO" # Shorten output 9861981Sbrian 9961981Sbrian# 450.status-security 10061981Sbriandaily_status_security_enable="YES" # Security check 10161981Sbriandaily_status_security_inline="NO" # Run inline ? 10261981Sbriandaily_status_security_noamd="NO" # Don't check amd mounts 10361981Sbriandaily_status_security_nomfs="NO" # Don't check mfs mounts 10461981Sbrian 10561981Sbrian# 460.status-mail-rejects 10661981Sbriandaily_status_mail_rejects_enable="YES" # Check mail rejects 10761981Sbrian 10861981Sbrian# 999.local 10961981Sbriandaily_local="/etc/daily.local" # Local scripts 11061981Sbrian 11161981Sbrian 11261981Sbrian# Weekly options 11361981Sbrian 11461981Sbrian# 120.clean-kvmdb 11561981Sbrianweekly_clean_kvmdb_enable="YES" # Clean kvmdb weekly 11661981Sbrianweekly_clean_kvmdb_days=7 # If not accessed for 11761981Sbrianweekly_clean_kvmdb_verbose="YES" # Mention files deleted 11861981Sbrian 11961981Sbrian# 300.uucp 12061981Sbrianweekly_uucp_enable="YES" # Clean uucp weekly 12161981Sbrian 12261981Sbrian# 310.locate 12361981Sbrianweekly_locate_enable="YES" # Update locate weekly 12461981Sbrian 12561981Sbrian# 320.whatis 12661981Sbrianweekly_whatis_enable="YES" # Update whatis weekly 12761981Sbrian 12861981Sbrian# 330.catman 12961981Sbrianweekly_catman_enable="NO" # Preformat man pages 13061981Sbrian 13161981Sbrian# 340.noid 13261981Sbrianweekly_noid_enable="NO" # Find unowned files 13361981Sbrianweekly_noid_dirs="/" # Look here 13461981Sbrian 13562155Sbrian# 340.status-pkg 13662155Sbrianweekly_status_pkg_enable="NO" # Find out-of-date pkgs 13762155Sbrian 13861981Sbrian# 999.local 13961981Sbrianweekly_local="/etc/weekly.local" # Local scripts 14061981Sbrian 14161981Sbrian 14261981Sbrian# Monthly options 14361981Sbrian 14461981Sbrian# 200.accounting 14561981Sbrianmonthly_accounting_enable="YES" # Login accounting 14661981Sbrian 14761981Sbrian# 999.local 14861981Sbrianmonthly_local="/etc/monthly.local" # Local scripts 14961981Sbrian 15061981Sbrian 15161981Sbrian# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 15261981Sbrian# scripts to source defaults/periodic.conf overrides safely. 15361981Sbrian 15461981Sbrianif [ -z "${source_periodic_confs_defined}" ]; then 15561981Sbrian source_periodic_confs_defined=yes 15661981Sbrian source_periodic_confs () { 15761981Sbrian local i sourced_files 15861981Sbrian 15961981Sbrian for i in ${periodic_conf_files}; do 16061981Sbrian case ${sourced_files} in 16161981Sbrian *:$i:*) 16261981Sbrian ;; 16361981Sbrian *) 16461981Sbrian sourced_files="${sourced_files}:$i:" 16561981Sbrian [ -r $i ] && . $i 16661981Sbrian ;; 16761981Sbrian esac 16861981Sbrian done 16961981Sbrian } 17061981Sbrianfi 171