From 8525863be3bb0dd12670cbc7523cf89c31a87a60 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Tue, 4 Mar 2025 23:19:47 -0500 Subject: [PATCH] * Sat Mar 01 2025 Jean-Philippe Pialasse 11.0.0-6.sme - move to full systemd units [SME: 12878] --- .../systemd/system/dnscache.service.d/51koozali.conf/20service | 2 +- root/sbin/e-smith/systemd/dnscache-pre | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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';