We need to eval the restart command
authorRoy Marples <roy@marples.name>
Tue, 21 Apr 2009 22:28:36 +0000 (22:28 +0000)
committerRoy Marples <roy@marples.name>
Tue, 21 Apr 2009 22:28:36 +0000 (22:28 +0000)
dnsmasq.in
libc.in
named.in
pdns_recursor.in

index 6d4e5af31d14957c9513ebdc6fdca72250100e53..8fdd999c662c4b8a35bcab43f1902b830506d930 100644 (file)
@@ -107,7 +107,7 @@ else
 fi
 
 if $changed; then
-       $dnsmasq_restart
+       eval $dnsmasq_restart
 fi
 if $dbus; then
        $restart || kill -HUP $(cat "$dnsmasq_pid")
diff --git a/libc.in b/libc.in
index d763315c37d777a65e9256d981c9c09e6f77ad52..d40587267979d745214dc6170d318f1c55726c11 100644 (file)
--- a/libc.in
+++ b/libc.in
@@ -143,7 +143,7 @@ fi
 
 # Create our resolv.conf now
 (umask 022; printf "$newconf" >"$resolv_conf")
-$libc_restart
+eval $libc_restart
 
 retval=0
 # Notify users of the resolver
index cebbba6e18dc319cb90126a1cbaacd67520a2868..09c76ac2e15ca21e4d79acb1bb0ef7a82bfc6c29 100644 (file)
--- a/named.in
+++ b/named.in
@@ -76,5 +76,5 @@ then
 fi
 
 if $changed; then
-       $named_restart
+       eval $named_restart
 fi
index ffe4da8cb0281c278a6aec52ca2e657327b9ee4d..e6227b7786cc873d2e4ca92fd3e06a7760fc90fc 100644 (file)
@@ -58,5 +58,5 @@ if [ ! -f "$pdns_zones" ] || \
        [ "$(cat "$pdns_zones")" != "$(printf "$newzones")" ]
 then
        printf "$newzones" >"$pdns_zones"
-       $pdns_restart
+       eval $pdns_restart
 fi