]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
reload bind9 from geodnssync using service
authorHelmut Grohne <helmut@subdivi.de>
Fri, 7 Nov 2014 14:38:28 +0000 (15:38 +0100)
committerHéctor Orón Martínez <zumbi@debian.org>
Fri, 7 Nov 2014 15:39:54 +0000 (16:39 +0100)
Getting rid of explicit /etc/init.d/ invocations as those may disappear.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
modules/named/files/common/trigger
modules/sudo/files/sudoers

index 5cda40d57ee4402ed728c6707fbacc5197cd508d..71c69704da81c9accaf6262f8ec0665da6594677 100755 (executable)
@@ -8,4 +8,4 @@
 set -e
 
 rsync -az --delete geodnssync@dns.debian.org:zonefiles/ /etc/bind/geodns/zonefiles/
-sudo /etc/init.d/bind9 reload
+sudo /usr/sbin/service bind9 reload
index 780eb11bfb2fe8614d2a84e28119341ef89f1523..4859f950287b8149270893fff30daa96eca5d3f7 100644 (file)
@@ -207,7 +207,7 @@ debwww              WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
 %list          LISTHOSTS=(amavis)              NOPASSWD: /usr/bin/sa-learn
 %list          LISTHOSTS=(amavis)              ALL
 # geodns may reload bind
-geodnssync     geo1,geo2,geo3=(root)   NOPASSWD: /etc/init.d/bind9 reload
+geodnssync     geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/service bind9 reload
 geodnssync     geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig
 # pushed nagiosadm reload icinga on tchaikovsky
 nagiosadm      tchaikovsky=(root)              NOPASSWD: /usr/sbin/service icinga reload