summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-31 03:52:58 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-31 03:52:58 +0000
commit39ef568ad5da594f92ea445bfd1190aa54ff0fb8 (patch)
tree37de3638072f372c80d32eddcc9a0fafff7ca464
parent01d0d701d42d9c491f4b21763c2ddc874e9a2eef (diff)
downloadvyatta-op-39ef568ad5da594f92ea445bfd1190aa54ff0fb8.tar.gz
vyatta-op-39ef568ad5da594f92ea445bfd1190aa54ff0fb8.zip
change command 'clear dns forwarding process' to 'clear dns forwarding statistics'
-rw-r--r--scripts/vyatta-op-dns-forwarding.pl6
-rw-r--r--templates/clear/dns/forwarding/statistics/node.def (renamed from templates/clear/dns/forwarding/process/node.def)4
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/vyatta-op-dns-forwarding.pl b/scripts/vyatta-op-dns-forwarding.pl
index 6ef8ebb..978ed33 100644
--- a/scripts/vyatta-op-dns-forwarding.pl
+++ b/scripts/vyatta-op-dns-forwarding.pl
@@ -213,10 +213,10 @@ sub print_nameservers {
#
# main
#
-my ($clear_cache, $clear_process, $show_statistics, $show_nameservers);
+my ($clear_cache, $clear_statistics, $show_statistics, $show_nameservers);
GetOptions("clear-cache!" => \$clear_cache,
- "clear-process!" => \$clear_process,
+ "clear-statistics!" => \$clear_statistics,
"show-statistics!" => \$show_statistics,
"show-nameservers!" => \$show_nameservers);
@@ -224,7 +224,7 @@ if (defined $clear_cache) {
system("kill -1 `pidof dnsmasq`");
}
-if (defined $clear_process) {
+if (defined $clear_statistics) {
system("/etc/init.d/dnsmasq restart >&/dev/null");
}
diff --git a/templates/clear/dns/forwarding/process/node.def b/templates/clear/dns/forwarding/statistics/node.def
index 20427cb..6441e12 100644
--- a/templates/clear/dns/forwarding/process/node.def
+++ b/templates/clear/dns/forwarding/statistics/node.def
@@ -1,8 +1,8 @@
-help: Clear DNS forwarding process
+help: Clear DNS forwarding statistics
run:
if ps ax | grep dnsmasq | grep -v grep > /dev/null
then
- sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --clear-process
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --clear-statistics
else
echo "DNS forwarding not configured"
fi