diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-30 07:52:40 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-30 07:52:40 +0000 |
commit | c620e1128d8c6a48d74467e671575c1c55b3a608 (patch) | |
tree | 2906a31317704c5f5931767923a1655bdc01643e /templates/clear/dns/forwarding | |
parent | 504b597d16e3b0471901e01964fcd229dd3f947e (diff) | |
download | vyatta-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/dns/forwarding')
-rw-r--r-- | templates/clear/dns/forwarding/process/node.def | 8 |
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 |