summaryrefslogtreecommitdiff
path: root/templates/clear
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-30 07:52:40 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-30 07:52:40 +0000
commitc620e1128d8c6a48d74467e671575c1c55b3a608 (patch)
tree2906a31317704c5f5931767923a1655bdc01643e /templates/clear
parent504b597d16e3b0471901e01964fcd229dd3f947e (diff)
downloadvyatta-op-c620e1128d8c6a48d74467e671575c1c55b3a608.tar.gz
vyatta-op-c620e1128d8c6a48d74467e671575c1c55b3a608.zip
add command 'clear dns forwarding process' to restart dnsmasq and clear all statistics
Diffstat (limited to 'templates/clear')
-rw-r--r--templates/clear/dns/forwarding/process/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/clear/dns/forwarding/process/node.def b/templates/clear/dns/forwarding/process/node.def
new file mode 100644
index 0000000..20427cb
--- /dev/null
+++ b/templates/clear/dns/forwarding/process/node.def
@@ -0,0 +1,8 @@
+help: Clear DNS forwarding process
+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
+ else
+ echo "DNS forwarding not configured"
+ fi