summaryrefslogtreecommitdiff
path: root/scripts/dns-forwarding
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-09 04:52:16 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-09 04:52:16 +0000
commit03399ce3a9127d78c535c4a6b7e1d8563df3888f (patch)
tree0e3e9b6aca530b5e884edac1fdfc175d1d237674 /scripts/dns-forwarding
parentee955bd93bd5199d885c1d6c4c4b18a059ea4c38 (diff)
downloadvyatta-cfg-quagga-03399ce3a9127d78c535c4a6b7e1d8563df3888f.tar.gz
vyatta-cfg-quagga-03399ce3a9127d78c535c4a6b7e1d8563df3888f.zip
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
Diffstat (limited to 'scripts/dns-forwarding')
-rw-r--r--scripts/dns-forwarding/vyatta-dns-forwarding.pl2
1 files changed, 2 insertions, 0 deletions
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;
}