View | Details | Raw Unified | Return to bug 256238
Collapse All | Expand All

(-)b/share/man/man5/periodic.conf.5 (-6 lines)
Lines 396-407 is set to Link Here
396
.Dq Li YES .
396
.Dq Li YES .
397
The default is
397
The default is
398
.Fl q .
398
.Fl q .
399
.It Va daily_news_expire_enable
400
.Pq Vt bool
401
Set to
402
.Dq Li YES
403
if you want to run
404
.Pa /etc/news.expire .
405
.It Va daily_status_disks_enable
399
.It Va daily_status_disks_enable
406
.Pq Vt bool
400
.Pq Vt bool
407
Set to
401
Set to
(-)a/usr.sbin/periodic/etc/daily/330.news (-34 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# Expire news articles
6
# (This is present only for backwards compatibility, usually the news
7
# system handles this on its own).
8
9
# If there is a global system configuration file, suck it in.
10
#
11
if [ -r /etc/defaults/periodic.conf ]
12
then
13
    . /etc/defaults/periodic.conf
14
    source_periodic_confs
15
fi
16
17
case "$daily_news_expire_enable" in
18
    [Yy][Ee][Ss])
19
	if [ ! -f /etc/news.expire ]
20
	then
21
	    echo '$daily_news_expire_enable is set but /etc/news.expire' \
22
		"doesn't exist"
23
	    rc=2
24
	else
25
	    echo ""
26
	    echo "Running news.expire:"
27
28
	    /etc/news.expire && rc=0 || rc=3
29
	fi;;
30
31
    *)  rc=0;;
32
esac
33
34
exit $rc
(-)b/usr.sbin/periodic/periodic.conf (-3 lines)
Lines 104-112 daily_accounting_compress="NO" # Gzip rotated files Link Here
104
daily_accounting_flags=-q				# Flags to /usr/sbin/sa
104
daily_accounting_flags=-q				# Flags to /usr/sbin/sa
105
daily_accounting_save=3					# How many files to save
105
daily_accounting_save=3					# How many files to save
106
106
107
# 330.news
108
daily_news_expire_enable="YES"				# Run news.expire
109
110
# 400.status-disks
107
# 400.status-disks
111
daily_status_disks_enable="YES"				# Check disk status
108
daily_status_disks_enable="YES"				# Check disk status
112
daily_status_disks_df_flags="-l -h"			# df(1) flags for check
109
daily_status_disks_df_flags="-l -h"			# df(1) flags for check

Return to bug 256238