Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 13:54:06 -0800
From:      Randy Bush <randy@psg.com>
To:        "Kevin Oberman" <oberman@es.net>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: parameterize named log 
Message-ID:  <E16kXk6-000Crm-00@rip.psg.com>
References:  <E16kNk2-000Ksb-00@rip.psg.com> <20020311172055.2F0665D07@ptavv.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
as i don't run a cvs tree here, excuse the brutality

randy

---


# diff -c /etc/periodic/daily/470.status-named~ /etc/periodic/daily/470.status-named
*** /etc/periodic/daily/470.status-named~	Tue Jul 31 19:32:54 2001
--- /etc/periodic/daily/470.status-named	Mon Mar 11 13:49:11 2002
***************
*** 12,21 ****
  fi
  
  catmsgs() {
! 	find /var/log -name 'messages.*' -mtime -2 |
  	    sort -t. -r -n +1 -2 |
  	    xargs zcat -f
! 	[ -f /var/log/messages ] && cat /var/log/messages
  }
  
  case "$daily_status_named_enable" in
--- 12,21 ----
  fi
  
  catmsgs() {
! 	find /var/log -name '$daily_status_named_log.*' -mtime -2 |
  	    sort -t. -r -n +1 -2 |
  	    xargs zcat -f
! 	[ -f /var/log/$daily_status_named_log ] && cat /var/log/$daily_status_named_log
  }
  
  case "$daily_status_named_enable" in
# diff -c /etc/defaults/periodic.conf~ /etc/defaults/periodic.conf
*** /etc/defaults/periodic.conf~	Tue Jul 31 19:32:44 2001
--- /etc/defaults/periodic.conf	Mon Mar 11 13:48:59 2002
***************
*** 123,128 ****
--- 123,129 ----
  # 470.status-named
  daily_status_named_enable="YES"
  daily_status_named_usedns="YES"				# DNS lookups are ok
+ daily_status_named_log="messages"
  
  # 500.queuerun
  daily_queuerun_enable="YES"				# Run mail queue

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16kXk6-000Crm-00>