]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - share/man/man5/periodic.conf.5
MFC 280721:
[FreeBSD/stable/9.git] / share / man / man5 / periodic.conf.5
1 .\"-
2 .\" Copyright (c) 2000 Brian Somers <brian@Awfulhak.org>
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd March 26, 2015
29 .Dt PERIODIC.CONF 5
30 .Os
31 .Sh NAME
32 .Nm periodic.conf
33 .Nd periodic job configuration information
34 .Sh DESCRIPTION
35 The file
36 .Nm
37 contains a description of how daily, weekly and monthly system maintenance
38 jobs should run.
39 It resides in the
40 .Pa /etc/defaults
41 directory and parts may be overridden by a file of the same name in
42 .Pa /etc ,
43 which itself may be overridden by the
44 .Pa /etc/periodic.conf.local
45 file.
46 .Pp
47 The
48 .Nm
49 file
50 is actually sourced as a shell script from each of the periodic scripts
51 and is intended to simply provide default configuration variables.
52 .Pp
53 The following variables are used by
54 .Xr periodic 8
55 itself:
56 .Bl -tag -offset 4n -width 2n
57 .It Va local_periodic
58 .Pq Vt str
59 List of directories to search for periodic scripts.
60 This list is always prefixed with
61 .Pa /etc/periodic ,
62 and is only used when an argument to
63 .Xr periodic 8
64 is not an absolute directory name.
65 .It Ao Ar dir Ac Ns Va _output
66 .Pq Vt path No or Vt list
67 What to do with the output of the scripts executed from
68 the directory
69 .Ar dir .
70 If this variable is set to an absolute path name, output is logged to
71 that file, otherwise it is taken as one or more space separated email
72 addresses and mailed to those users.
73 If this variable is not set or is empty, output is sent to standard output.
74 .Pp
75 For an unattended machine, suitable values for
76 .Va daily_output ,
77 .Va weekly_output ,
78 and
79 .Va monthly_output
80 might be
81 .Dq Li /var/log/daily.log ,
82 .Dq Li /var/log/weekly.log ,
83 and
84 .Dq Li /var/log/monthly.log
85 respectively, as
86 .Xr newsyslog 8
87 will rotate these files (if they exists) at the appropriate times.
88 .It Ao Ar dir Ac Ns Va _show_success
89 .It Ao Ar dir Ac Ns Va _show_info
90 .It Ao Ar dir Ac Ns Va _show_badconfig
91 .Pq Vt bool
92 These variables control whether
93 .Xr periodic 8
94 will mask the output of the executed scripts based on their return code
95 (where
96 .Ar dir
97 is the base directory name in which each script resides).
98 If the return code of a script is
99 .Sq 0
100 and
101 .Ao Ar dir Ac Ns Va _show_success
102 is set to
103 .Dq Li NO ,
104 .Xr periodic 8
105 will mask the script's output.
106 If the return code of a script is
107 .Sq 1
108 and
109 .Ao Ar dir Ac Ns Va _show_info
110 is set to
111 .Dq Li NO ,
112 .Xr periodic 8
113 will mask the script's output.
114 If the return code of a script is
115 .Sq 2
116 and
117 .Ao Ar dir Ac Ns Va _show_badconfig
118 is set to
119 .Dq Li NO ,
120 .Xr periodic 8
121 will mask the script's output.
122 If these variables are set to neither
123 .Dq Li YES
124 nor
125 .Dq Li NO ,
126 they default to
127 .Dq Li YES ,
128 .Dq Li YES
129 and
130 .Dq Li NO
131 respectively.
132 .Pp
133 Refer to the
134 .Xr periodic 8
135 manual page for how script return codes are interpreted.
136 .El
137 .Pp
138 The following variables are used by the standard scripts that reside in
139 .Pa /etc/periodic/daily :
140 .Bl -tag -offset 4n -width 2n
141 .It Va daily_clean_disks_enable
142 .Pq Vt bool
143 Set to
144 .Dq Li YES
145 if you want to remove all files matching
146 .Va daily_clean_disks_files
147 daily.
148 .It Va daily_clean_disks_files
149 .Pq Vt str
150 Set to a list of file names to match.
151 Wild cards are permitted.
152 .It Va daily_clean_disks_days
153 .Pq Vt num
154 When
155 .Va daily_clean_disks_enable
156 is set to
157 .Dq Li YES ,
158 this must also be set to the number of days old that a file's access
159 and modification times must be before it is deleted.
160 .It Va daily_clean_disks_verbose
161 .Pq Vt bool
162 Set to
163 .Dq Li YES
164 if you want the removed files to be reported in your daily output.
165 .It Va daily_clean_tmps_enable
166 .Pq Vt bool
167 Set to
168 .Dq Li YES
169 if you want to clear temporary directories daily.
170 .It Va daily_clean_tmps_dirs
171 .Pq Vt str
172 Set to the list of directories to clear if
173 .Va daily_clean_tmps_enable
174 is set to
175 .Dq Li YES .
176 .It Va daily_clean_tmps_days
177 .Pq Vt num
178 When
179 .Va daily_clean_tmps_enable
180 is set, this must also be set to the number of days old that a file's access
181 and modification times must be before it is deleted.
182 .It Va daily_clean_tmps_ignore
183 .Pq Vt str
184 Set to the list of files that should not be deleted when
185 .Va daily_clean_tmps_enable
186 is set to
187 .Dq Li YES .
188 Wild card characters are permitted.
189 .It Va daily_clean_tmps_verbose
190 .Pq Vt bool
191 Set to
192 .Dq Li YES
193 if you want the removed files to be reported in your daily output.
194 .It Va daily_clean_preserve_enable
195 .Pq Vt bool
196 Set to
197 .Dq Li YES
198 if you wish to remove old files from
199 .Pa /var/preserve .
200 .It Va daily_clean_preserve_days
201 .Pq Vt num
202 Set to the number of days that files must not have been modified before
203 they are deleted.
204 .It Va daily_clean_preserve_verbose
205 .Pq Vt bool
206 Set to
207 .Dq Li YES
208 if you want the removed files to be reported in your daily output.
209 .It Va daily_clean_msgs_enable
210 .Pq Vt bool
211 Set to
212 .Dq Li YES
213 if you wish old system messages to be purged.
214 .It Va daily_clean_msgs_days
215 .Pq Vt num
216 Set to the number of days that files must not have been modified before
217 they are deleted.
218 If this variable is left blank, the
219 .Xr msgs 1
220 default is used.
221 .It Va daily_clean_rwho_enable
222 .Pq Vt bool
223 Set to
224 .Dq Li YES
225 if you wish old files in
226 .Pa /var/who
227 to be purged.
228 .It Va daily_clean_rwho_days
229 .Pq Vt num
230 Set to the number of days that files must not have been modified before
231 they are deleted.
232 .It Va daily_clean_rwho_verbose
233 .Pq Vt bool
234 Set to
235 .Dq Li YES
236 if you want the removed files to be reported in your daily output.
237 .It Va daily_clean_hoststat_enable
238 .Pq Vt bool
239 Set to
240 .Dq Li YES
241 to run
242 .Nm sendmail Fl bH
243 to automatically purge stale entries from
244 .Xr sendmail 8 Ns 's
245 host status cache.
246 Files will be deleted using the same criteria as
247 .Xr sendmail 8
248 would normally use when determining whether to believe the cached information,
249 as configured in
250 .Pa /etc/mail/sendmail.cf .
251 .It Va daily_backup_passwd_enable
252 .Pq Vt bool
253 Set to
254 .Dq Li YES
255 if you want the
256 .Pa /etc/master.passwd
257 and
258 .Pa /etc/group
259 files backed up and reported on.
260 Reporting consists of checking both files for modifications and running
261 .Xr chkgrp 8
262 on the
263 .Pa group
264 file.
265 .It Va daily_backup_aliases_enable
266 .Pq Vt bool
267 Set to
268 .Dq Li YES
269 if you want the
270 .Pa /etc/mail/aliases
271 file backed up and modifications to be displayed in your daily output.
272 .It Va daily_calendar_enable
273 .Pq Vt bool
274 Set to
275 .Dq Li YES
276 if you want to run
277 .Nm calendar Fl a
278 daily.
279 .It Va daily_accounting_enable
280 .Pq Vt bool
281 Set to
282 .Dq Li YES
283 if you want to rotate your daily accounting files.
284 No rotations are necessary unless
285 .Va accounting_enable
286 is enabled in
287 .Xr rc.conf 5 .
288 .It Va daily_accounting_compress
289 .Pq Vt bool
290 Set to
291 .Dq Li YES
292 if you want your daily accounting files to be compressed using
293 .Xr gzip 1 .
294 .It Va daily_accounting_save
295 .Pq Vt num
296 When
297 .Va daily_accounting_enable
298 is set, this may also be set to the number of daily accounting files that are
299 to be saved.
300 The default is
301 .Dq Li 3 .
302 .It Va daily_accounting_flags
303 .Pq Vt str
304 Set to the arguments to pass to the
305 .Xr sa 8
306 utility (in addition to
307 .Fl s )
308 when
309 .Va daily_accounting_enable
310 is set to
311 .Dq Li YES .
312 The default is
313 .Fl q .
314 .It Va daily_news_expire_enable
315 .Pq Vt bool
316 Set to
317 .Dq Li YES
318 if you want to run
319 .Pa /etc/news.expire .
320 .It Va daily_status_disks_enable
321 .Pq Vt bool
322 Set to
323 .Dq Li YES
324 if you want to run
325 .Xr df 1
326 (with the arguments supplied in
327 .Va daily_status_disks_df_flags )
328 and
329 .Nm dump Fl W .
330 .It Va daily_status_disks_df_flags
331 .Pq Vt str
332 Set to the arguments for the
333 .Xr df 1
334 utility when
335 .Va daily_status_disks_enable
336 is set to
337 .Dq Li YES .
338 The default is
339 .Fl l Fl h .
340 .It Va daily_status_zfs_enable
341 .Pq Vt bool
342 Set to
343 .Dq Li YES
344 if you want to run
345 .Nm zpool Cm status
346 on your
347 .Xr zfs 8
348 pools.
349 .It Va daily_status_zfs_zpool_list_enable
350 .Pq Vt bool
351 Set to
352 .Dq Li YES
353 if you want to run
354 .Nm zpool Cm list
355 on your
356 .Xr zfs 8
357 pools.
358 Requires
359 .Va daily_status_zfs_enable
360 to be set to
361 .Li YES .
362 .It Va daily_status_ata_raid_enable
363 .Pq Vt bool
364 Set to
365 .Dq Li YES
366 if you want to run
367 .Nm atacontrol Cm status
368 on your
369 .Xr ataraid 4
370 arrays.
371 .It Va daily_status_gmirror_enable
372 .Pq Vt bool
373 Set to
374 .Dq Li YES
375 if you want to run
376 .Nm gmirror Cm status
377 on your
378 .Xr gmirror 8
379 devices.
380 .It Va daily_status_graid3_enable
381 .Pq Vt bool
382 Set to
383 .Dq Li YES
384 if you want to run
385 .Nm graid3 Cm status
386 on your
387 .Xr graid3 8
388 devices.
389 .It Va daily_status_gstripe_enable
390 .Pq Vt bool
391 Set to
392 .Dq Li YES
393 if you want to run
394 .Nm gstripe Cm status
395 on your
396 .Xr gstripe 8
397 devices.
398 .It Va daily_status_gconcat_enable
399 .Pq Vt bool
400 Set to
401 .Dq Li YES
402 if you want to run
403 .Nm gconcat Cm status
404 on your
405 .Xr gconcat 8
406 devices.
407 .It Va daily_status_network_enable
408 .Pq Vt bool
409 Set to
410 .Dq Li YES
411 if you want to run
412 .Nm netstat Fl i .
413 .It Va daily_status_network_netstat_flags
414 .Pq Vt str
415 Set to additional arguments for the
416 .Xr netstat 1
417 utility when
418 .Va daily_status_network_enable
419 is set to
420 .Dq Li YES .
421 The default is
422 .Fl d .
423 .It Va daily_status_network_usedns
424 .Pq Vt bool
425 Set to
426 .Dq Li YES
427 if you want to run
428 .Xr netstat 1
429 without the
430 .Fl n
431 option (to do DNS lookups).
432 .It Va daily_status_rwho_enable
433 .Pq Vt bool
434 Set to
435 .Dq Li YES
436 if you want to run
437 .Xr uptime 1
438 (or
439 .Xr ruptime 1
440 if
441 .Va rwhod_enable
442 is set to
443 .Dq Li YES
444 in
445 .Pa /etc/rc.conf ) .
446 .It Va daily_status_mailq_enable
447 .Pq Vt bool
448 Set to
449 .Dq Li YES
450 if you want to run
451 .Xr mailq 1 .
452 .It Va daily_status_mailq_shorten
453 .Pq Vt bool
454 Set to
455 .Dq Li YES
456 if you want to shorten the
457 .Xr mailq 1
458 output when
459 .Va daily_status_mailq_enable
460 is set to
461 .Dq Li YES .
462 .It Va daily_status_include_submit_mailq
463 .Pq Vt bool
464 Set to
465 .Dq Li YES
466 if you also want to run
467 .Xr mailq 1
468 on the submit mail queue when
469 .Va daily_status_mailq_enable
470 is set to
471 .Dq Li YES .
472 This may not work with MTAs other than
473 .Xr sendmail 8 .
474 .It Va daily_status_security_enable
475 .Pq Vt bool
476 Set to
477 .Dq Li YES
478 if you want to run the security check.
479 The security check is another set of
480 .Xr periodic 8
481 scripts.
482 The system defaults are in
483 .Pa /etc/periodic/security .
484 Local scripts should be placed in
485 .Pa /usr/local/etc/periodic/security .
486 See the
487 .Xr periodic 8
488 manual page for more information.
489 .It Va daily_status_security_inline
490 .Pq Vt bool
491 Set to
492 .Dq Li YES
493 if you want the security check output inline.
494 The default is to either mail or log the output according to the value of
495 .Va daily_status_security_output .
496 .It Va daily_status_security_output
497 .Pq Vt str
498 Where to send the output of the security check if
499 .Va daily_status_security_inline
500 is set to
501 .Dq Li NO .
502 This variable behaves in the same way as the
503 .Va *_output
504 variables above, namely it can be set either to one or more email addresses
505 or to an absolute file name.
506 .It Va daily_status_security_diff_flags
507 .Pq Vt str
508 Set to the arguments to pass to the
509 .Xr diff 1
510 utility when generating differences.
511 The default is
512 .Fl b u .
513 .It Va daily_status_security_chksetuid_enable
514 .Pq Vt bool
515 Set to
516 .Dq Li YES
517 to compare the modes and modification times of setuid executables with
518 the previous day's values.
519 .It Va daily_status_security_chkportsum_enable
520 .Pq Vt bool
521 Set to
522 .Dq Li YES
523 to verify checksums of all installed packages against the known checksums in
524 .Pa /var/db/pkg .
525 .It Va daily_status_security_neggrpperm_enable
526 .Pq Vt bool
527 Set to
528 .Dq Li YES
529 to check for files where the group of a file has less permissions than
530 the world at large.
531 When users are in more than 14 supplemental groups these negative
532 permissions may not be enforced via NFS shares.
533 .It Va daily_status_security_chkmounts_enable
534 .Pq Vt bool
535 Set to
536 .Dq Li YES
537 to check for changes mounted file systems to the previous day's values.
538 .It Va daily_status_security_noamd
539 .Pq Vt bool
540 Set to
541 .Dq Li YES
542 if you want to ignore
543 .Xr amd 8
544 mounts when comparing against yesterday's file system mounts in the
545 .Va daily_status_security_chkmounts_enable
546 check.
547 .It Va daily_status_security_chkuid0_enable
548 .Pq Vt bool
549 Set to
550 .Dq Li YES
551 to check
552 .Pa /etc/master.passwd
553 for accounts with UID 0.
554 .It Va daily_status_security_passwdless_enable
555 .Pq Vt bool
556 Set to
557 .Dq Li YES
558 to check
559 .Pa /etc/master.passwd
560 for accounts with empty passwords.
561 .It Va daily_status_security_logincheck_enable
562 .Pq Vt bool
563 Set to
564 .Dq Li YES
565 to check
566 .Pa /etc/login.conf
567 ownership, see
568 .Xr login.conf 5
569 for more information.
570 .It Va daily_status_security_ipfwdenied_enable
571 .Pq Vt bool
572 Set to
573 .Dq Li YES
574 to show log entries for packets denied by
575 .Xr ipfw 8
576 since yesterday's check.
577 .It Va daily_status_security_ipfdenied_enable
578 .Pq Vt bool
579 Set to
580 .Dq Li YES
581 to show log entries for packets denied by
582 .Xr ipf 8
583 since yesterday's check.
584 .It Va daily_status_security_pfdenied_enable
585 .Pq Vt bool
586 Set to
587 .Dq Li YES
588 to show log entries for packets denied by
589 .Xr pf 4
590 since yesterday's check.
591 .It Va daily_status_security_ipfwlimit_enable
592 .Pq Vt bool
593 Set to
594 .Dq Li YES
595 to display
596 .Xr ipfw 8
597 rules that have reached their verbosity limit.
598 .It Va daily_status_security_kernelmsg_enable
599 .Pq Vt bool
600 Set to
601 .Dq Li YES
602 to show new
603 .Xr dmesg 8
604 entries since yesterday's check.
605 .It Va daily_status_security_loginfail_enable
606 .Pq Vt bool
607 Set to
608 .Dq Li YES
609 to display failed logins from
610 .Pa /var/log/messages
611 in the previous day.
612 .It Va daily_status_security_tcpwrap_enable
613 .Pq Vt bool
614 Set to
615 .Dq Li YES
616 to display connections denied by tcpwrappers (see
617 .Xr hosts_access 5 )
618 from
619 .Pa /var/log/messages
620 during the previous day.
621 .It Va daily_status_mail_rejects_enable
622 .Pq Vt bool
623 Set to
624 .Dq Li YES
625 if you want to summarise mail rejections logged to
626 .Pa /var/log/maillog
627 for the previous day.
628 .It Va daily_status_mail_rejects_logs
629 .Pq Vt num
630 Set to the number of maillog files that should be checked
631 for yesterday's mail rejects.
632 .It Va daily_status_named_enable
633 .Pq Vt bool
634 Set to
635 .Dq Li YES
636 if you want to summarise denied zone transfers (AXFR and IXFR)
637 for the previous day.
638 .It Va daily_status_named_usedns
639 .Pq Vt bool
640 Set to
641 .Dq Li YES
642 if you want to enable reverse DNS lookups.
643 .It Va daily_status_ntpd
644 .Pq Vt bool
645 Set to
646 .Dq Li YES
647 if you want to enable NTP status check.
648 .It Va daily_status_world_kernel
649 .Pq Vt bool
650 Set to
651 .Dq Li YES
652 to check the running userland and kernel are in sync.
653 .It Va daily_queuerun_enable
654 .Pq Vt bool
655 Set to
656 .Dq Li YES
657 if you want to manually run the mail queue at least once a day.
658 .It Va daily_submit_queuerun
659 .Pq Vt bool
660 Set to
661 .Dq Li YES
662 if you also want to manually run the submit mail queue at least once a day
663 when
664 .Va daily_queuerun_enable
665 is set to
666 .Dq Li YES .
667 .It Va daily_scrub_zfs_enable
668 .Pq Vt bool
669 Set to
670 .Dq Li YES
671 if you want to run a zfs scrub periodically.
672 .It Va daily_scrub_zfs_pools
673 .Pq Vt str
674 A space separated list of names of zfs pools to scrub.
675 If the list is empty or not set, all zfs pools are scrubbed.
676 .It Va daily_scrub_zfs_default_threshold
677 .Pq Vt int
678 Number of days between a scrub if no pool-specific threshold is set.
679 If not set, the default value is 35, corresponding to 5 weeks.
680 .It Va daily_scrub_zfs_ Ns Ao Ar poolname Ac Ns Va _threshold
681 .Pq Vt int
682 The same as
683 .Va daily_scrub_zfs_default_threshold
684 but specific to the pool
685 .Ao Ar poolname Ac Ns .
686 .It Va daily_local
687 .Pq Vt str
688 Set to a list of extra scripts that should be run after all other
689 daily scripts.
690 All scripts must be absolute path names.
691 .El
692 .Pp
693 The following variables are used by the standard scripts that reside in
694 .Pa /etc/periodic/weekly :
695 .Bl -tag -offset 4n -width 2n
696 .It Va weekly_locate_enable
697 .Pq Vt bool
698 Set to
699 .Dq Li YES
700 if you want to run
701 .Pa /usr/libexec/locate.updatedb .
702 This script is run using
703 .Nm nice Fl 5
704 as user
705 .Dq Li nobody ,
706 and generates the table used by the
707 .Xr locate 1
708 command.
709 .It Va weekly_whatis_enable
710 .Pq Vt bool
711 Set to
712 .Dq Li YES
713 if you want to run
714 .Pa /usr/libexec/makewhatis.local .
715 This script regenerates the database used by the
716 .Xr apropos 1
717 command.
718 .It Va weekly_catman_enable
719 .Pq Vt bool
720 Set to
721 .Dq Li YES
722 if you want to run
723 .Pa /usr/libexec/catman.local .
724 This script processes all out of date manual pages, speeding up the
725 .Xr man 1
726 command at the expense of disk space.
727 .It Va weekly_noid_enable
728 .Pq Vt bool
729 Set to
730 .Dq Li YES
731 if you want to locate orphaned files on the system.
732 An orphaned file is one with an invalid owner or group.
733 .It Va weekly_noid_dirs
734 .Pq Vt str
735 A list of directories under which orphaned files are searched for.
736 This would usually be set to
737 .Pa / .
738 .It Va weekly_status_pkg_enable
739 .Pq Vt bool
740 Set to
741 .Dq Li YES
742 if you want to use
743 .Xr pkg_version 1
744 to list installed packages which are out of date.
745 .It Va pkg_version
746 .Pq Vt str
747 When
748 .Va weekly_status_pkg_enable
749 is set to
750 .Dq Li YES ,
751 this variable specifies the program that is used to determine the out of
752 date packages.
753 If unset, the
754 .Xr pkg_version 1
755 program is used.
756 As an example, this variable might be set to
757 .Dq Li portversion
758 if the
759 .Pa ports/sysutils/portupgrade
760 port has been installed.
761 .It Va pkg_version_index
762 .Pq Vt str
763 This variable specifies the
764 .Pa INDEX
765 file from
766 .Pa /usr/ports
767 that should be used by
768 .Xr pkg_version 1 .
769 Because the dependency tree may be substantially different between versions of
770 .Fx ,
771 there may be more than one
772 .Pa INDEX
773 file in
774 .Pa /usr/ports .
775 .Pp
776 Note, if the
777 .Va pkg_version
778 variable is set to
779 .Dq Li portversion ,
780 it will also be necessary to arrange that the correct
781 .Pa INDEX
782 file is specified
783 using environment variables and that
784 .Va pkg_version_index
785 is cleared in
786 .Pa /etc/periodic.conf
787 .Pq Dq Li pkg_version_index= .
788 .It Va weekly_local
789 .Pq Vt str
790 Set to a list of extra scripts that should be run after all other
791 weekly scripts.
792 All scripts must be absolute path names.
793 .El
794 .Pp
795 The following variables are used by the standard scripts that reside in
796 .Pa /etc/periodic/monthly :
797 .Bl -tag -offset 4n -width 2n
798 .It Va monthly_accounting_enable
799 .Pq Vt bool
800 Set to
801 .Dq Li YES
802 if you want to do login accounting using the
803 .Xr ac 8
804 command.
805 .It Va monthly_local
806 .Pq Vt str
807 Set to a list of extra scripts that should be run after all other
808 monthly scripts.
809 All scripts must be absolute path names.
810 .El
811 .Sh FILES
812 .Bl -tag -width ".Pa /etc/defaults/periodic.conf"
813 .It Pa /etc/defaults/periodic.conf
814 The default configuration file.
815 This file contains all default variables and values.
816 .It Pa /etc/periodic.conf
817 The usual system specific variable override file.
818 .It Pa /etc/periodic.conf.local
819 An additional override file, useful when
820 .Pa /etc/periodic.conf
821 is shared or distributed.
822 .El
823 .Sh SEE ALSO
824 .Xr apropos 1 ,
825 .Xr calendar 1 ,
826 .Xr df 1 ,
827 .Xr diff 1 ,
828 .Xr gzip 1 ,
829 .Xr locate 1 ,
830 .Xr man 1 ,
831 .Xr msgs 1 ,
832 .Xr netstat 1 ,
833 .Xr nice 1 ,
834 .Xr pkg_version 1 ,
835 .Xr login.conf 5 ,
836 .Xr rc.conf 5 ,
837 .Xr ac 8 ,
838 .Xr chkgrp 8 ,
839 .Xr dump 8 ,
840 .Xr newsyslog 8 ,
841 .Xr periodic 8 ,
842 .Xr sendmail 8
843 .Sh HISTORY
844 The
845 .Nm
846 file appeared in
847 .Fx 4.1 .
848 .Sh AUTHORS
849 .An Brian Somers Aq brian@Awfulhak.org