1. 12 Dec, 2018 1 commit
  2. 10 Dec, 2018 1 commit
  3. 08 Aug, 2017 1 commit
    • Thomas Markwalder's avatar
      [5324] Log file rotation now works when configured to do so · 2e2cb37a
      Thomas Markwalder authored
      doc/guide/logging.xml
          Updated logging section with more explanation of maxsize and maxver
      
      src/lib/dhcpsrv/logging_info.cc
          LoggingInfo::toSpec()
              Now sets maxsize and maxver in created spec
      
      src/lib/dhcpsrv/tests/logging_info_unittest.cc
          TEST_F(LoggingInfoTest, defaults)
              Added checks for default maxsize and maxver
      
      src/lib/dhcpsrv/tests/logging_unittest.cc
          LoggingTest:
              Added support for log files
      
          TEST_F(LoggingTest, logRotate) - new test the ensures
          logs rotate when configured to do so
      
      src/lib/testutils/dhcp_test_lib.sh.in
          Added code to remove log lock file.  When rotation is enabled,
          lock files are automatically enabled.
      2e2cb37a
  4. 23 Jul, 2017 7 commits
  5. 24 Jan, 2017 1 commit
  6. 14 Dec, 2016 1 commit
  7. 05 Dec, 2016 1 commit
  8. 21 Dec, 2015 1 commit
  9. 18 Dec, 2015 1 commit
  10. 16 Dec, 2015 2 commits
  11. 15 Dec, 2015 2 commits
  12. 29 Sep, 2015 1 commit
  13. 28 Sep, 2015 1 commit
  14. 25 Sep, 2015 1 commit
  15. 08 Jul, 2015 1 commit
  16. 02 Jul, 2015 2 commits
    • Thomas Markwalder's avatar
      [3769] DHPCv4 now uses PID file, made pid test common · 24267d20
      Thomas Markwalder authored
      src/lib/testutils/dhcp_test_lib.sh.in
          - server_pid_file_test() - common test for any server
          to verify PID file management
      
      src/bin/d2/tests/d2_process_tests.sh.in
          remmoved duplicate_server_start_test
          now calls server_pid_file_test
      
      Added PID file creation to DHCP4
          src/bin/dhcp4/dhcp4_messages.mes
          -  added log DHCP4_ALREADY_RUNNING
      
          src/bin/dhcp4/main.cc
          - added logic to create the PID and catch
          exception specific to PID conflict
      
          src/bin/dhcp4/tests/Makefile.am
          - exports KEA_PIDFILE_DIR
      
          src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
          - added call to server_pid_file_test
      
          src/bin/dhcp4/tests/dhcp4_unittests.cc
          - main(int argc, char* argv[])
          sets env var KEA_PIDFILE_DIR
      24267d20
    • Thomas Markwalder's avatar
      [3769] Added env var,KEA_PIDFILE_DIR; D2 now uses a PIDFile · d743c5f2
      Thomas Markwalder authored
      src/lib/dhcpsrv/daemon.c/h
          Daemon::Daemon() - Constructor will now override the default PID
          directory with the value of env variable KEA_PIDFILE_DIR.  This
          provides a simple means to alter the value for tests.
      
          Added am_file_author_ flag so Daemon instances will only delete
          a file they have written.
      
      src/lib/testutils/dhcp_test_lib.sh.in
          - verify_server_pid() - new function which verifies that a server has a PID file
          and that it contains the server's PID, and that the process is alive.
      
      src/bin/keactrl/tests/Makefile.am
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      
      Added PID file creation to D2
          src/bin/d2/d_controller.cc
          - DControllerBase::launch() - Added block to createPIDFile()
      
          -DControllerBase::parseArgs() Replaced call to Daemon::init()
          with call to Daemon::setConfigFile()
      
          src/bin/d2/tests/Makefile.am
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      
          src/bin/d2/tests/d2_process_tests.sh.in
          - dupcliate_server_start_test() - new test which verifies that D2 cannot be
          started twice (with the same configuration file)
      
          src/bin/d2/tests/d2_unittests.cc
          - main(int argc, char* argv[]) sets environment variable KEA_PIDFILE_DIR
           to override default PID diretory during tests
      
      src/lib/util/pid_file.cc/h
      src/lib/util/tests/pid_file_unittest.cc
          Changed PIDFile::check() to return either the PID contained in the PID file
          if the process is alive, or 0, rather than bool.  This permits callers
          to see/log the PID.
      d743c5f2
  17. 27 Feb, 2015 1 commit
  18. 05 Nov, 2014 2 commits
  19. 15 Sep, 2014 1 commit
  20. 11 Aug, 2014 2 commits
  21. 06 Aug, 2014 1 commit
  22. 02 Jul, 2014 1 commit
  23. 27 Jun, 2014 1 commit
  24. 26 Jun, 2014 1 commit
  25. 13 Jun, 2014 1 commit
  26. 11 Jun, 2014 2 commits
  27. 09 Jun, 2014 1 commit
  28. 05 Jun, 2014 1 commit