From 65d6f73ff5a9b17575f32f68956dc538d869ea11 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Tue, 15 Oct 2013 12:40:06 +0200 Subject: [PATCH] Remove unused precursor init script There's another one in pdns_recursor.init.d, which is the one that's actually distributed. --- Makefile.am | 4 +-- configure.ac | 2 +- pdns/.gitignore | 1 - pdns/precursor.in | 65 ----------------------------------------------- 4 files changed, 2 insertions(+), 70 deletions(-) delete mode 100755 pdns/precursor.in diff --git a/Makefile.am b/Makefile.am index 59002e808d..82924a785f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,11 +21,9 @@ pdns/docs/dnstcpbench.1: install-exec-local: -@chmod +x pdns/pdns - -@chmod +x pdns/precursor @echo "***********************************************************" @echo - @echo init.d startup scripts have been made for you in pdns/pdns - @echo and in pdns/precursor + @echo An init.d startup script has been made for you in pdns/pdns. @echo You may want to copy these to /etc/init.d or equivalent @echo @echo "***********************************************************" diff --git a/configure.ac b/configure.ac index b90c840e04..35e48c47a7 100644 --- a/configure.ac +++ b/configure.ac @@ -767,7 +767,7 @@ AC_SUBST(LIBS) export moduledirs moduleobjects modulelibs AC_OUTPUT(Makefile modules/Makefile pdns/Makefile codedocs/Makefile \ -pdns/backends/Makefile pdns/backends/bind/Makefile pdns/pdns pdns/precursor \ +pdns/backends/Makefile pdns/backends/bind/Makefile pdns/pdns \ modules/gmysqlbackend/Makefile modules/db2backend/Makefile \ modules/geobackend/Makefile modules/opendbxbackend/Makefile \ modules/pipebackend/Makefile modules/oraclebackend/Makefile \ diff --git a/pdns/.gitignore b/pdns/.gitignore index 69841d3891..88b21c41b8 100644 --- a/pdns/.gitignore +++ b/pdns/.gitignore @@ -10,7 +10,6 @@ /pdns_server /pdns_recursor /pdnssec -/precursor /sdig /dnslabeltext.cc /dnsreplay diff --git a/pdns/precursor.in b/pdns/precursor.in deleted file mode 100755 index dfd17a1747..0000000000 --- a/pdns/precursor.in +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# chkconfig: - 80 75 -# description: pdns_recursor is a versatile high performance recursing nameserver - -prefix=@prefix@ -exec_prefix=@exec_prefix@ -BINARYPATH=@bindir@ -SBINARYPATH=@sbindir@ -SOCKETPATH=@socketdir@ - -PIDFILE=@socketdir@/pdns_recursor.pid - -if [ -s $PIDFILE -a -d /proc/$(cat $PIDFILE) 2>/dev/null ] -then - RUNNING=1 - PID=$(cat $PIDFILE) -else - RUNNING=0 -fi - - -case "$1" in - status) - if [ $RUNNING = "1" ] - then - echo pdns_recursor is running - else - echo pdns_recursor is not running - fi - ;; - - stop) - echo -n "Stopping PowerDNS recursor: " - if [ $RUNNING = "1" ] - then - kill -9 $PID - echo stopped - else - echo not running - fi - ;; - - start) - echo -n "Starting PowerDNS recursor: " - if [ $RUNNING = "1" ] - then - echo already running - else - $SBINARYPATH/pdns_recursor --daemon > /dev/null 2> /dev/null - echo started - fi - ;; - - restart) - $0 stop - $0 start - ;; - - *) - echo unknown instruction \'$1\' - ;; - -esac - - -- 2.47.2