periodic.conf revision 62644
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 62644 2000-07-05 17:48:23Z sheldonh $ 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 8462644Ssheldonhdaily_status_disks_df_flags="-k -t nonfs" # df(1) flags for check 8561981Sbrian 8661981Sbrian# 410.status-uucp 8761981Sbriandaily_status_uucp_enable="YES" # Check uucp status 8861981Sbrian 8961981Sbrian# 420.status-network 9061981Sbriandaily_status_network_enable="YES" # Check network status 9161981Sbriandaily_status_network_usedns="YES" # DNS lookups are ok 9261981Sbrian 9361981Sbrian# 430.status-rwho 9461981Sbriandaily_status_rwho_enable="YES" # Check system status 9561981Sbrian 9661981Sbrian# 440.status-mailq 9761981Sbriandaily_status_mailq_enable="YES" # Check mail status 9861981Sbriandaily_status_mailq_shorten="NO" # Shorten output 9961981Sbrian 10061981Sbrian# 450.status-security 10161981Sbriandaily_status_security_enable="YES" # Security check 10261981Sbriandaily_status_security_inline="NO" # Run inline ? 10361981Sbriandaily_status_security_noamd="NO" # Don't check amd mounts 10461981Sbriandaily_status_security_nomfs="NO" # Don't check mfs mounts 10561981Sbrian 10661981Sbrian# 460.status-mail-rejects 10761981Sbriandaily_status_mail_rejects_enable="YES" # Check mail rejects 10862274Sbriandaily_status_mail_rejects_logs=3 # How many logs to check 10961981Sbrian 11061981Sbrian# 999.local 11161981Sbriandaily_local="/etc/daily.local" # Local scripts 11261981Sbrian 11361981Sbrian 11461981Sbrian# Weekly options 11561981Sbrian 11661981Sbrian# 120.clean-kvmdb 11761981Sbrianweekly_clean_kvmdb_enable="YES" # Clean kvmdb weekly 11861981Sbrianweekly_clean_kvmdb_days=7 # If not accessed for 11961981Sbrianweekly_clean_kvmdb_verbose="YES" # Mention files deleted 12061981Sbrian 12161981Sbrian# 300.uucp 12261981Sbrianweekly_uucp_enable="YES" # Clean uucp weekly 12361981Sbrian 12461981Sbrian# 310.locate 12561981Sbrianweekly_locate_enable="YES" # Update locate weekly 12661981Sbrian 12761981Sbrian# 320.whatis 12861981Sbrianweekly_whatis_enable="YES" # Update whatis weekly 12961981Sbrian 13061981Sbrian# 330.catman 13161981Sbrianweekly_catman_enable="NO" # Preformat man pages 13261981Sbrian 13361981Sbrian# 340.noid 13461981Sbrianweekly_noid_enable="NO" # Find unowned files 13561981Sbrianweekly_noid_dirs="/" # Look here 13661981Sbrian 13762206Sbrian# 400.status-pkg 13862155Sbrianweekly_status_pkg_enable="NO" # Find out-of-date pkgs 13962155Sbrian 14061981Sbrian# 999.local 14161981Sbrianweekly_local="/etc/weekly.local" # Local scripts 14261981Sbrian 14361981Sbrian 14461981Sbrian# Monthly options 14561981Sbrian 14661981Sbrian# 200.accounting 14761981Sbrianmonthly_accounting_enable="YES" # Login accounting 14861981Sbrian 14961981Sbrian# 999.local 15061981Sbrianmonthly_local="/etc/monthly.local" # Local scripts 15161981Sbrian 15261981Sbrian 15361981Sbrian# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 15461981Sbrian# scripts to source defaults/periodic.conf overrides safely. 15561981Sbrian 15661981Sbrianif [ -z "${source_periodic_confs_defined}" ]; then 15761981Sbrian source_periodic_confs_defined=yes 15861981Sbrian source_periodic_confs () { 15961981Sbrian local i sourced_files 16061981Sbrian 16161981Sbrian for i in ${periodic_conf_files}; do 16261981Sbrian case ${sourced_files} in 16361981Sbrian *:$i:*) 16461981Sbrian ;; 16561981Sbrian *) 16661981Sbrian sourced_files="${sourced_files}:$i:" 16761981Sbrian [ -r $i ] && . $i 16861981Sbrian ;; 16961981Sbrian esac 17061981Sbrian done 17161981Sbrian } 17261981Sbrianfi 173