recursor_cache.hh rec_channel.hh qtype.hh misc.hh dns.hh syncres.hh \
sstuff.hh mtasker.hh mtasker.cc lwres.hh logger.hh pdnsexception.hh \
mplexer.hh \
-recursorservice.hh dns_random.hh lua-pdns.hh lua-recursor.hh namespaces.hh \
+dns_random.hh lua-pdns.hh lua-recursor.hh namespaces.hh \
recpacketcache.hh base32.hh cachecleaner.hh json.hh version.hh"
CFILES="syncres.cc misc.cc unix_utility.cc qtype.cc \
recursor_cache.cc dnsparser.cc dnswriter.cc dnsrecords.cc rcpgenerator.cc \
base64.cc zoneparser-tng.cc rec_channel.cc rec_channel_rec.cc rec_control.cc \
selectmplexer.cc epollmplexer.cc kqueuemplexer.cc portsmplexer.cc pdns_hw.cc \
-recursorservice.cc sillyrecords.cc lua-pdns.cc lua-recursor.cc randomhelper.cc \
+sillyrecords.cc lua-pdns.cc lua-recursor.cc randomhelper.cc \
devpollmplexer.cc recpacketcache.cc dns.cc reczones.cc base32.cc nsecrecords.cc \
dnslabeltext.cc json.cc json_ws.cc json_ws.hh version.cc"
+++ /dev/null
-/*
- PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 PowerDNS.COM BV
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation
-
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-
-#include "common_startup.hh"
-#include "pdnsservice.hh"
-
-
-// Control handler.
-void PDNSService::ctrlHandler( DWORD controlCode )
-{
- if ( m_statusCode == SERVICE_STOPPED )
- exit( 0 );
-
- switch ( controlCode )
- {
- case SERVICE_CONTROL_STOP:
- setStatus( SERVICE_STOP_PENDING );
- shutdown();
- setStatus( SERVICE_STOPPED );
- // FIXME: Add a cleaner way to do this:
- break;
-
- case SERVICE_CONTROL_INTERROGATE:
- setStatus( m_statusCode, m_errorCode );
- break;
-
- case SERVICE_CONTROL_SHUTDOWN:
- setStatus( SERVICE_STOP_PENDING );
- shutdown();
- setStatus( SERVICE_STOPPED );
- // FIXME: Add a cleaner way to do this:
- break;
- }
-}
-
-
-// Returns the service name.
-std::string PDNSService::getServiceName( void )
-{
- return "PowerDNS";
-}
-
-
-// Main procedure.
-int PDNSService::main( int argc, char *argv[] )
-{
- try
- {
- L << Logger::Info << Logger::NTLog << "PowerDNS " << VERSION << " (C) 2001-2003 PowerDNS.COM BV (" << __DATE__ ", " __TIME__<< ") starting up" << endl;
- mainthread();
- }
- catch(PDNSException &AE) {
- if(!PDNSService::isRunningAsService())
- cerr<<"Exiting because: "<<AE.reason<<endl;
- L<<Logger::Error<<Logger::NTLog<<"Exiting because: "<<AE.reason<<endl;
- }
- catch(...) {
- cerr<<"Uncaught exception of unknown type - sorry"<<endl;
- }
-
- return 0;
-}
+++ /dev/null
-/*
- PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 PowerDNS.COM BV
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation
-
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-
-#ifndef AHUDNSSERVICE_HH
-#define AHUDNSSERVICE_HH
-
-#include <string>
-#include "ntservice.hh"
-
-class PDNSService : public NTService
-{
-protected:
- //! Main service procedure.
- int main( int argc, char *argv[] );
-
- //! Control handler.
- void ctrlHandler( DWORD controlCode );
-
-public:
- //! Constructor.
- PDNSService( void ) : NTService()
- {
- }
-
- //! Returns the service name.
- std::string getServiceName( void );
-
-};
-
-#endif // AHUDNSSERVICE_HH
+++ /dev/null
-/*
- PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 - 2006 PowerDNS.COM BV
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-
-#include "recursorservice.hh"
-
-extern int serviceMain( int argc, char *argv[] );
-
-// Control handler.
-void RecursorService::ctrlHandler( DWORD controlCode )
-{
- if ( m_statusCode == SERVICE_STOPPED )
- exit( 0 );
-
- switch ( controlCode )
- {
- case SERVICE_CONTROL_STOP:
- setStatus( SERVICE_STOP_PENDING );
- shutdown();
- setStatus( SERVICE_STOPPED );
- // FIXME: Add a cleaner way to do this:
- break;
-
- case SERVICE_CONTROL_INTERROGATE:
- setStatus( m_statusCode, m_errorCode );
- break;
-
- case SERVICE_CONTROL_SHUTDOWN:
- setStatus( SERVICE_STOP_PENDING );
- shutdown();
- setStatus( SERVICE_STOPPED );
- // FIXME: Add a cleaner way to do this:
- break;
- }
-}
-
-
-// Returns the service name.
-std::string RecursorService::getServiceName( void )
-{
- return "PowerDNS Recursor";
-}
-
-
-// Main procedure.
-int RecursorService::main( int argc, char *argv[] )
-{
- return serviceMain( argc, argv );
-
-}
+++ /dev/null
-/*
- PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 PowerDNS.COM BV
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation
-
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-
-#ifndef AHUDNSSERVICE_HH
-#define AHUDNSSERVICE_HH
-
-#include <string>
-#include "ntservice.hh"
-
-class RecursorService : public NTService
-{
-protected:
- //! Main service procedure.
- int main( int argc, char *argv[] );
-
- //! Control handler.
- void ctrlHandler( DWORD controlCode );
-
-public:
- //! Constructor.
- RecursorService( void ) : NTService()
- {
- }
-
- //! Returns the service name.
- std::string getServiceName( void );
-
-};
-
-#endif // AHUDNSSERVICE_HH