diff --git a/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service b/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service index 3b31ab1..0762c5d 100644 --- a/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service +++ b/root/etc/e-smith/templates/usr/lib/systemd/system/dnscache.service.d/51koozali.conf/20service @@ -1,4 +1,4 @@ -i[Service] +[Service] { my $datalimit = $dnscache{'DataLimit'} || "3000000"; my $ListenIP= $dnscache{'ListenIP'} || $LocalIP || "127.0.0.3"; diff --git a/root/sbin/e-smith/systemd/dnscache-pre b/root/sbin/e-smith/systemd/dnscache-pre index bdf5eaf..055d662 100755 --- a/root/sbin/e-smith/systemd/dnscache-pre +++ b/root/sbin/e-smith/systemd/dnscache-pre @@ -123,7 +123,7 @@ delegate_domains_2DNS( # ## Ensure that forwarder instance is started #system("sv", "u", "/service/dnscache.forwarder"); -/usr/bin/systemctl restart dnscache.forwarder +system("/usr/bin/systemctl", "restart", "dnscache.forwarder"); # ## http://marc.theaimsgroup.com/?l=djbdns&m=104812086607532&w=2 #$SIG{'PIPE'} = 'IGNORE';