1#!/bin/sh 2# 3# This is defaults/periodic.conf - a file full of useful variables that 4# you can set to change the default behaviour of periodic jobs on your 5# system. You should not edit this file! Put any overrides into one of the 6# $periodic_conf_files instead and you will be able to update these defaults 7# later without spamming your local configuration information. 8# 9# The $periodic_conf_files files should only contain values which override 10# values set in this file. This eases the upgrade path when defaults 11# are changed and new features are added. 12# 13# For a more detailed explanation of all the periodic.conf variables, please 14# refer to the periodic.conf(5) manual page. 15# 16# $FreeBSD: src/etc/defaults/periodic.conf,v 1.47 2008/01/08 07:22:43 dds Exp $ 17# 18 19# What files override these defaults ? 20periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local" 21 22# periodic script dirs 23local_periodic="/usr/local/etc/periodic" 24 25 26# Daily options 27 28# These options are used by periodic(8) itself to determine what to do 29# with the output of the sub-programs that are run, and where to send 30# that output. $daily_output might be set to /var/log/daily.log if you 31# wish to log the daily output and have the files rotated by newsyslog(8) 32# 33daily_output="/var/log/daily.out" # user or /file 34daily_show_success="YES" # scripts returning 0 35daily_show_info="YES" # scripts returning 1 36daily_show_badconfig="NO" # scripts returning 2 37 38# 110.clean-tmps 39daily_clean_tmps_enable="YES" # Delete stuff daily 40daily_clean_tmps_dirs="/tmp" # Delete under here 41daily_clean_tmps_days="3" # If not accessed for 42daily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix" 43daily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group" 44 # Don't delete these 45daily_clean_tmps_verbose="YES" # Mention files deleted 46 47# 130.clean-msgs 48daily_clean_msgs_enable="YES" # Delete msgs daily 49daily_clean_msgs_days= # If not modified for 50 51# 140.clean-rwho 52daily_clean_rwho_enable="YES" # Delete rwho daily 53daily_clean_rwho_days=7 # If not modified for 54daily_clean_rwho_verbose="YES" # Mention files deleted 55 56# 310.accounting 57daily_accounting_enable="YES" # Rotate acct files 58daily_accounting_compress="NO" # Gzip rotated files 59daily_accounting_flags=-q # Flags to /usr/sbin/sa 60daily_accounting_save=3 # How many files to save 61 62# 400.status-disks 63daily_status_disks_enable="YES" # Check disk status 64daily_status_disks_df_flags="-l -h" # df(1) flags for check 65 66# 420.status-network 67daily_status_network_enable="YES" # Check network status 68daily_status_network_usedns="YES" # DNS lookups are ok 69 70# 430.status-rwho 71daily_status_rwho_enable="YES" # Check system status 72 73# 440.status-mailq 74daily_status_mailq_enable="YES" # Check mail status 75daily_status_mailq_shorten="NO" # Shorten output 76daily_status_include_submit_mailq="YES" # Also submit queue 77 78# 999.local 79daily_local="/etc/daily.local" # Local scripts 80 81 82# Weekly options 83 84# These options are used by periodic(8) itself to determine what to do 85# with the output of the sub-programs that are run, and where to send 86# that output. $weekly_output might be set to /var/log/weekly.log if you 87# wish to log the weekly output and have the files rotated by newsyslog(8) 88# 89weekly_output="/var/log/weekly.out" # user or /file 90weekly_show_success="YES" # scripts returning 0 91weekly_show_info="YES" # scripts returning 1 92weekly_show_badconfig="NO" # scripts returning 2 93 94# 320.whatis 95weekly_whatis_enable="YES" # Update whatis weekly 96 97# 999.local 98weekly_local="/etc/weekly.local" # Local scripts 99 100 101# Monthly options 102 103# These options are used by periodic(8) itself to determine what to do 104# with the output of the sub-programs that are run, and where to send 105# that output. $monthly_output might be set to /var/log/monthly.log if you 106# wish to log the monthly output and have the files rotated by newsyslog(8) 107# 108monthly_output="/var/log/monthly.out" # user or /file 109monthly_show_success="YES" # scripts returning 0 110monthly_show_info="YES" # scripts returning 1 111monthly_show_badconfig="NO" # scripts returning 2 112 113# 200.accounting 114monthly_accounting_enable="YES" # Login accounting 115 116# 999.local 117monthly_local="/etc/monthly.local" # Local scripts 118 119 120# Define source_periodic_confs, the mechanism used by /etc/periodic/*/* 121# scripts to source defaults/periodic.conf overrides safely. 122 123if [ -z "${source_periodic_confs_defined}" ]; then 124 source_periodic_confs_defined=yes 125 source_periodic_confs () { 126 local i sourced_files 127 128 for i in ${periodic_conf_files}; do 129 case ${sourced_files} in 130 *:$i:*) 131 ;; 132 *) 133 sourced_files="${sourced_files}:$i:" 134 [ -r $i ] && . $i 135 ;; 136 esac 137 done 138 } 139fi 140