From 03399ce3a9127d78c535c4a6b7e1d8563df3888f Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Sat, 9 Aug 2008 04:52:16 +0000 Subject: log dnsmasq output to /var/log/dnsmasq.log on start-up and whilst running (i.e. when sent a signal to log) this will be used to extract information for 'show dns forwarding statistics' command --- scripts/dns-forwarding/vyatta-dns-forwarding.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/dns-forwarding/vyatta-dns-forwarding.pl') diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index b4ffe2e3..8639a010 100644 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -51,6 +51,8 @@ sub dnsforwarding_get_constants { my $date = `date`; chomp $date; $output = "#\n# autogenerated by vyatta-dns-forwarding.pl on $date\n#\n"; + $output .= "log-facility=/var/log/dnsmasq.log\n"; + system("rm -f /var/log/dnsmasq.log; touch /var/log/dnsmasq.log"); return $output; } -- cgit v1.2.3