summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-01-21 17:15:16 +0100
committerChristian Poessinger <christian@poessinger.com>2018-01-21 17:15:16 +0100
commitd663e63a2d60fa6c79328cd08a6fce76f3861372 (patch)
treef96a94fde7d5f86d0c58790dc6f9b841d1e25e88
parent2abbf9fb822b7c16cbf6f60d9c0ba4c181e024e9 (diff)
downloadvyatta-cfg-system-d663e63a2d60fa6c79328cd08a6fce76f3861372.tar.gz
vyatta-cfg-system-d663e63a2d60fa6c79328cd08a6fce76f3861372.zip
T523: Use systemctl to stop/restart dnsmasq
-rwxr-xr-xscripts/dns-forwarding/vyatta-dns-forwarding.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
index e2ee913c..bb091e9d 100755
--- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl
+++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
@@ -31,15 +31,14 @@ use Getopt::Long;
use strict;
use warnings;
-my $dnsforwarding_init = '/etc/init.d/dnsmasq';
my $dnsforwarding_conf = '/etc/dnsmasq.d/vyos.conf';
sub dnsforwarding_restart {
- system("$dnsforwarding_init restart >&/dev/null");
+ system("systemctl restart dnsmasq");
}
sub dnsforwarding_stop {
- system("$dnsforwarding_init stop >&/dev/null");
+ system("systemctl stop dnsmasq");
}
sub dnsforwarding_get_constants {