periodic: remove obsolete news.expire
With the initial import of 386BSD 0.1 in 1993, the daily execution of /etc/news.expire was introduced (see commit1bf9d5d951
). In 1997, this was brought into periodic resulting in daily/330.news (see commit28dce04d19
). But as far as I see, /etc/news.expire has never existed. PR: 256238 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30631
This commit is contained in:
parent
23210c9f42
commit
901c52f13c
@ -52,6 +52,9 @@
|
|||||||
# xargs -n1 | sort | uniq -d;
|
# xargs -n1 | sort | uniq -d;
|
||||||
# done
|
# done
|
||||||
|
|
||||||
|
# 20220307: remove 330.news
|
||||||
|
OLD_FILES+=etc/periodic/daily/330.news
|
||||||
|
|
||||||
# 20220210: unwind.h moved to /usr/include
|
# 20220210: unwind.h moved to /usr/include
|
||||||
OLD_FILES+=usr/include/c++/v1/unwind-arm.h
|
OLD_FILES+=usr/include/c++/v1/unwind-arm.h
|
||||||
OLD_FILES+=usr/include/c++/v1/unwind-itanium.h
|
OLD_FILES+=usr/include/c++/v1/unwind-itanium.h
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd November 7, 2020
|
.Dd March 7, 2022
|
||||||
.Dt PERIODIC.CONF 5
|
.Dt PERIODIC.CONF 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -396,12 +396,6 @@ is set to
|
|||||||
.Dq Li YES .
|
.Dq Li YES .
|
||||||
The default is
|
The default is
|
||||||
.Fl q .
|
.Fl q .
|
||||||
.It Va daily_news_expire_enable
|
|
||||||
.Pq Vt bool
|
|
||||||
Set to
|
|
||||||
.Dq Li YES
|
|
||||||
if you want to run
|
|
||||||
.Pa /etc/news.expire .
|
|
||||||
.It Va daily_status_disks_enable
|
.It Va daily_status_disks_enable
|
||||||
.Pq Vt bool
|
.Pq Vt bool
|
||||||
Set to
|
Set to
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# $FreeBSD$
|
|
||||||
#
|
|
||||||
# Expire news articles
|
|
||||||
# (This is present only for backwards compatibility, usually the news
|
|
||||||
# system handles this on its own).
|
|
||||||
|
|
||||||
# If there is a global system configuration file, suck it in.
|
|
||||||
#
|
|
||||||
if [ -r /etc/defaults/periodic.conf ]
|
|
||||||
then
|
|
||||||
. /etc/defaults/periodic.conf
|
|
||||||
source_periodic_confs
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$daily_news_expire_enable" in
|
|
||||||
[Yy][Ee][Ss])
|
|
||||||
if [ ! -f /etc/news.expire ]
|
|
||||||
then
|
|
||||||
echo '$daily_news_expire_enable is set but /etc/news.expire' \
|
|
||||||
"doesn't exist"
|
|
||||||
rc=2
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
echo "Running news.expire:"
|
|
||||||
|
|
||||||
/etc/news.expire && rc=0 || rc=3
|
|
||||||
fi;;
|
|
||||||
|
|
||||||
*) rc=0;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit $rc
|
|
@ -14,7 +14,6 @@ CONFS= 100.clean-disks \
|
|||||||
210.backup-aliases \
|
210.backup-aliases \
|
||||||
221.backup-gpart \
|
221.backup-gpart \
|
||||||
222.backup-gmirror \
|
222.backup-gmirror \
|
||||||
330.news \
|
|
||||||
400.status-disks \
|
400.status-disks \
|
||||||
401.status-graid \
|
401.status-graid \
|
||||||
406.status-gmirror \
|
406.status-gmirror \
|
||||||
|
@ -109,9 +109,6 @@ daily_accounting_compress="NO" # Gzip rotated files
|
|||||||
daily_accounting_flags=-q # Flags to /usr/sbin/sa
|
daily_accounting_flags=-q # Flags to /usr/sbin/sa
|
||||||
daily_accounting_save=3 # How many files to save
|
daily_accounting_save=3 # How many files to save
|
||||||
|
|
||||||
# 330.news
|
|
||||||
daily_news_expire_enable="YES" # Run news.expire
|
|
||||||
|
|
||||||
# 400.status-disks
|
# 400.status-disks
|
||||||
daily_status_disks_enable="YES" # Check disk status
|
daily_status_disks_enable="YES" # Check disk status
|
||||||
daily_status_disks_df_flags="-l -h" # df(1) flags for check
|
daily_status_disks_df_flags="-l -h" # df(1) flags for check
|
||||||
|
Loading…
Reference in New Issue
Block a user