]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Support default directory on debian/ubuntu
authorAki Tuomi <cmouse@desteem.org>
Fri, 24 Apr 2015 15:16:33 +0000 (18:16 +0300)
committerAki Tuomi <cmouse@desteem.org>
Fri, 24 Apr 2015 15:16:33 +0000 (18:16 +0300)
pdns/pdns-recursor.init.d

index dcf6f88d1aaf1b4388daa32f653da266aa35a934..54c94e5b121960e167e67c7d6343c6be77f9bb50 100755 (executable)
@@ -18,6 +18,10 @@ pdns_server=$SBINARYPATH/pdns_recursor
 
 [ -f "$pdns_server" ] || exit 0
 
+. /etc/default/pdns-recursor
+
+[ "$START" = "no" ] && exit 0
+
 doPC()
 {
        ret=`$BINARYPATH/rec_control $EXTRAOPTS $1 $2 2> /dev/null`