resolvconf -s now does service commands so subscribers don't need to know about how...
[openresolv] / named
diff --git a/named b/named
index 86cbf7c5ed74a75a33191782ea53d3d2559b60eb..842998cda71a61d6068a6a29fc2d5fbbffe8fe1d 100755 (executable)
--- a/named
+++ b/named
@@ -120,19 +120,6 @@ else
        RELOAD="yes"
 fi
 
-if [ "${RELOAD}" = "yes" ]; then
-       # OpenRC style
-       if [ -x /etc/init.d/named ]; then
-               if [ -x /sbin/runscript ]; then
-                       /etc/init.d/named --nodeps --quiet conditionalrestart
-               else
-                       /etc/init.d/named restart
-               fi
-       fi
-       # BSD RC style
-       if [ -x /etc/rc.d/named -a -s /var/run/named/pid ]; then
-               kill -0 $(cat /var/run/named/pid) && /etc/rc.d/named restart
-       fi
-fi
+[ "${RELOAD}" = "yes" ] && resolvconf -s named restart
 
 exit 0