diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-19 21:27:46 +0000 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-19 21:27:46 +0000 |
commit | 69fa01c66a4848e4a3747cc27c495c33d115cc48 (patch) | |
tree | b2c3abef04464ad251231fe88e8e2f6e668c583c /scripts | |
parent | 578c5a5872726fe498a2950b9a502ae49967e4ce (diff) | |
download | vyatta-cfg-system-69fa01c66a4848e4a3747cc27c495c33d115cc48.tar.gz vyatta-cfg-system-69fa01c66a4848e4a3747cc27c495c33d115cc48.zip |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dns-forwarding/vyatta-dns-forwarding.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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 |