diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-11-20 00:03:17 +0500 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-11-20 00:03:17 +0500 |
commit | 06d24d7b791acf4ad906602d9769a4d2495b0b70 (patch) | |
tree | e5b0a54bcafb85afdede3d4b2ed2020f2e83bc6a | |
parent | 1d54d4e700b4e1736d1e2798d96bfb9dd1b1f31d (diff) | |
parent | 39a5792649d0d26a6afc062353b36d6de88e84d3 (diff) | |
download | vyatta-op-06d24d7b791acf4ad906602d9769a4d2495b0b70.tar.gz vyatta-op-06d24d7b791acf4ad906602d9769a4d2495b0b70.zip |
Merge pull request #4 from tomjepp/lithium
Bug #619 - Implemented a DNS forwarder restart command - "restart dns forwarding"
-rw-r--r-- | templates/restart/dns/forwarding/node.def | 9 | ||||
-rw-r--r-- | templates/restart/dns/node.def | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/restart/dns/forwarding/node.def b/templates/restart/dns/forwarding/node.def new file mode 100644 index 0000000..18f530e --- /dev/null +++ b/templates/restart/dns/forwarding/node.def @@ -0,0 +1,9 @@ +help: Restart DNS forwarder + +run: + echo "Restarting DNS forwarder..." + sudo /etc/init.d/dnsmasq restart + if [[ $? -eq 0 ]]; then + echo "Success!" + fi + diff --git a/templates/restart/dns/node.def b/templates/restart/dns/node.def new file mode 100644 index 0000000..3118853 --- /dev/null +++ b/templates/restart/dns/node.def @@ -0,0 +1 @@ +help: Restart DNS services |