From 69fa01c66a4848e4a3747cc27c495c33d115cc48 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Thu, 19 Nov 2015 21:27:46 +0000 Subject: vyatta-cfg-system: add restart option to vyatta-dns-forwarding.pl Expand vyatta-dns-forwarding.pl to include a restart option, keeping starting, stoping and restarting of this service consistent. Bug #619 http://bugzilla.vyos.net/show_bug.cgi?id=619 --- scripts/dns-forwarding/vyatta-dns-forwarding.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl index 62144e90..46e038b5 100755 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl @@ -204,11 +204,12 @@ sub check_dhcp_interface { # main # -my ($update_dnsforwarding, $stop_dnsforwarding, $system_nameserver, $dhcp_interface, $outside_cli); +my ($update_dnsforwarding, $stop_dnsforwarding, $restart_dnsforwarding, $system_nameserver, $dhcp_interface, $outside_cli); GetOptions( "update-dnsforwarding!" => \$update_dnsforwarding, "stop-dnsforwarding!" => \$stop_dnsforwarding, + "restart-dnsforwarding!" => \$restart_dnsforwarding, "system-nameserver!" => \$system_nameserver, "outside-cli!" => \$outside_cli, "dhcp-interface=s" => \$dhcp_interface @@ -257,6 +258,10 @@ if (defined $stop_dnsforwarding) { dnsforwarding_stop(); } +if (defined $restart_dnsforwarding) { + dnsforwarding_restart(); +} + exit 0; # end of file -- cgit v1.2.3