Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/periodic/etc/security/900.tcpwrap
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
catmsgs() { | catmsgs() { | ||||
find ${LOG} -name 'messages.*' -mtime -2 | | find ${LOG} -name 'messages.*' -mtime -2 | | ||||
sort -t. -r -n -k 2,2 | | sort -t. -r -n -k 2,2 | | ||||
while read f | while read f | ||||
do | do | ||||
case $f in | case $f in | ||||
*.gz) zcat -f $f;; | *.gz) zcat -f $f;; | ||||
*.bz2) bzcat -f $f;; | *.bz2) bzcat -f $f;; | ||||
*.xz) xzcat -f $f;; | |||||
*.zst) zstdcat -f $f;; | |||||
esac | esac | ||||
done | done | ||||
[ -f ${LOG}/messages ] && cat $LOG/messages | [ -f ${LOG}/messages ] && cat $LOG/messages | ||||
} | } | ||||
rc=0 | rc=0 | ||||
if check_yesno_period security_status_tcpwrap_enable | if check_yesno_period security_status_tcpwrap_enable | ||||
Show All 9 Lines |