xref: /dragonfly/etc/defaults/periodic.conf (revision f02303f9)
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# $FreeBSD: src/etc/defaults/periodic.conf,v 1.7.2.13 2002/11/07 19:43:16 thomas Exp $
14# $DragonFly: src/etc/defaults/periodic.conf,v 1.6 2007/03/25 11:35:11 swildner Exp $
15#
16
17# What files override these defaults ?
18periodic_conf_files="/etc/periodic.conf /etc/periodic.conf.local"
19
20# periodic script dirs
21local_periodic="/usr/local/etc/periodic /usr/pkg/xorg/etc/periodic /usr/X11R6/etc/periodic"
22
23
24# Daily options
25
26# These options are used by periodic(8) itself to determine what to do
27# with the output of the sub-programs that are run, and where to send
28# that output.  $daily_output might be set to /var/log/daily.log if you
29# wish to log the daily output and have the files rotated by newsyslog(8)
30#
31daily_output="root"					# user or /file
32daily_show_success="YES"				# scripts returning 0
33daily_show_info="YES"					# scripts returning 1
34daily_show_badconfig="NO"				# scripts returning 2
35
36# 100.clean-disks
37daily_clean_disks_enable="NO"				# Delete files daily
38daily_clean_disks_files="[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*"
39daily_clean_disks_days=3				# If older than this
40daily_clean_disks_verbose="YES"				# Mention files deleted
41
42# 110.clean-tmps
43daily_clean_tmps_enable="NO"				# Delete stuff daily
44daily_clean_tmps_dirs="/tmp"				# Delete under here
45daily_clean_tmps_days="3"				# If not accessed for
46daily_clean_tmps_ignore=".X*-lock quota.user quota.group" # Don't delete these
47daily_clean_tmps_verbose="YES"				# Mention files deleted
48
49# 120.clean-preserve
50daily_clean_preserve_enable="YES"			# Delete files daily
51daily_clean_preserve_days=7				# If not modified for
52daily_clean_preserve_verbose="YES"			# Mention files deleted
53
54# 130.clean-msgs
55daily_clean_msgs_enable="YES"				# Delete msgs daily
56daily_clean_msgs_days=					# If not modified for
57
58# 140.clean-rwho
59daily_clean_rwho_enable="YES"				# Delete rwho daily
60daily_clean_rwho_days=7					# If not modified for
61daily_clean_rwho_verbose="YES"				# Mention files deleted
62
63# 150.clean-hoststat
64daily_clean_hoststat_enable="YES"			# Delete .hoststat daily
65
66# 200.backup-passwd
67daily_backup_passwd_enable="YES"			# Backup passwd & group
68
69# 210.backup-aliases
70daily_backup_aliases_enable="YES"			# Backup mail aliases
71
72# 220.backup-distfile
73daily_backup_distfile_enable="YES"			# Backup /etc/Distfile
74
75# 300.calendar
76daily_calendar_enable="NO"				# Run calendar -a
77
78# 310.accounting
79daily_accounting_enable="YES"				# Rotate acct files
80daily_accounting_compress="NO"				# Gzip rotated files
81daily_accounting_flags=-q				# Flags to /usr/sbin/sa
82daily_accounting_save=3					# How many files to save
83
84# 320.distfile
85daily_distfile_enable="YES"				# Run rdist daily
86
87# 330.news
88daily_news_expire_enable="YES"				# Run news.expire
89
90# 400.status-disks
91daily_status_disks_enable="YES"				# Check disk status
92daily_status_disks_df_flags="-k -t nonfs"		# df(1) flags for check
93
94# 420.status-network
95daily_status_network_enable="YES"			# Check network status
96daily_status_network_usedns="YES"			# DNS lookups are ok
97
98# 430.status-rwho
99daily_status_rwho_enable="YES"				# Check system status
100
101# 440.status-mailq
102daily_status_mailq_enable="YES"				# Check mail status
103daily_status_mailq_shorten="NO"				# Shorten output
104daily_status_include_submit_mailq="YES"			# Also submit queue
105
106# 450.status-security
107daily_status_security_enable="YES"			# Security check
108# See "Security options" below for more options
109
110# 460.status-mail-rejects
111daily_status_mail_rejects_enable="YES"			# Check mail rejects
112daily_status_mail_rejects_logs=3			# How many logs to check
113
114# 470.status-named
115daily_status_named_enable="YES"
116daily_status_named_usedns="YES"				# DNS lookups are ok
117
118# 500.queuerun
119daily_queuerun_enable="YES"				# Run mail queue
120daily_submit_queuerun="YES"				# Also submit queue
121
122# 999.local
123daily_local="/etc/daily.local"				# Local scripts
124
125
126# Security options
127
128# These options are used by the security periodic(8) scripts spawned in
129# 450.status-security above.
130daily_status_security_inline="NO"			# Run inline ?
131daily_status_security_output="root"			# user or /file
132daily_status_security_noamd="NO"			# Don't check amd mounts
133daily_status_security_nomfs="NO"			# Don't check mfs mounts
134daily_status_security_logdir="/var/log"			# Directory for logs
135
136# 100.chksetuid
137daily_status_security_chksetuid_enable="YES"
138
139# 200.chkmounts
140daily_status_security_chkmounts_enable="YES"
141#daily_status_security_chkmounts_ignore="^amd:|^mfs:"	# Don't check matching
142							# FS types
143
144# 300.chkuid0
145daily_status_security_chkuid0_enable="YES"
146
147# 400.passwdless
148daily_status_security_passwdless_enable="YES"
149
150# 500.ipfwdenied
151daily_status_security_ipfwdenied_enable="YES"
152
153# 510.ipfdenied
154daily_status_security_ipfdenied_enable="YES"
155
156# 550.ipfwlimit
157daily_status_security_ipfwlimit_enable="YES"
158
159# 600.ip6fwdenied
160daily_status_security_ip6fwdenied_enable="YES"
161
162# 650.ip6fwlimit
163daily_status_security_ip6fwlimit_enable="YES"
164
165# 700.kernelmsg
166daily_status_security_kernelmsg_enable="YES"
167
168# 800.loginfail
169daily_status_security_loginfail_enable="YES"
170
171# 900.tcpwrap
172daily_status_security_tcpwrap_enable="YES"
173
174
175# Weekly options
176
177# These options are used by periodic(8) itself to determine what to do
178# with the output of the sub-programs that are run, and where to send
179# that output.  $weekly_output might be set to /var/log/weekly.log if you
180# wish to log the weekly output and have the files rotated by newsyslog(8)
181#
182weekly_output="root"					# user or /file
183weekly_show_success="YES"				# scripts returning 0
184weekly_show_info="YES"					# scripts returning 1
185weekly_show_badconfig="NO"				# scripts returning 2
186
187# 120.clean-kvmdb
188weekly_clean_kvmdb_enable="YES"				# Clean kvmdb weekly
189weekly_clean_kvmdb_days=7				# If not accessed for
190weekly_clean_kvmdb_verbose="YES"			# Mention files deleted
191
192# 310.locate
193weekly_locate_enable="YES"				# Update locate weekly
194
195# 320.whatis
196weekly_whatis_enable="YES"				# Update whatis weekly
197
198# 330.catman
199weekly_catman_enable="NO"				# Preformat man pages
200
201# 340.noid
202weekly_noid_enable="NO"					# Find unowned files
203weekly_noid_dirs="/"					# Look here
204
205# 999.local
206weekly_local="/etc/weekly.local"			# Local scripts
207
208
209# Monthly options
210
211# These options are used by periodic(8) itself to determine what to do
212# with the output of the sub-programs that are run, and where to send
213# that output.  $monthly_output might be set to /var/log/monthly.log if you
214# wish to log the monthly output and have the files rotated by newsyslog(8)
215#
216monthly_output="root"					# user or /file
217monthly_show_success="YES"				# scripts returning 0
218monthly_show_info="YES"					# scripts returning 1
219monthly_show_badconfig="NO"				# scripts returning 2
220
221# 200.accounting
222monthly_accounting_enable="YES"				# Login accounting
223
224# 300.statistics - http://www.bsdstats.org
225# (reports basic non-identifying OS info to BSD community site on internet)
226#monthly_statistics_enable="YES"
227#monthly_statistics_report_devices="YES"
228
229# 999.local
230monthly_local="/etc/monthly.local"			# Local scripts
231
232
233# Define source_periodic_confs, the mechanism used by /etc/periodic/*/*
234# scripts to source defaults/periodic.conf overrides safely.
235
236if [ -z "${source_periodic_confs_defined}" ]; then
237        source_periodic_confs_defined=yes
238        source_periodic_confs () {
239                local i sourced_files
240
241                for i in ${periodic_conf_files}; do
242                        case ${sourced_files} in
243                        *:$i:*)
244                                ;;
245                        *)
246                                sourced_files="${sourced_files}:$i:"
247                                [ -r $i ] && . $i
248                                ;;
249                        esac
250                done
251        }
252fi
253