SUBDIRS = cfgrpt . testutils tests
-# DATA_DIR is the directory where to put PID files.
dhcp_data_dir = @runstatedir@/@PACKAGE@
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
-AM_CPPFLAGS += -DDATA_DIR="\"$(dhcp_data_dir)\""
+AM_CPPFLAGS += -DPIDFILE_DIR="\"$(dhcp_data_dir)\""
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CXXFLAGS = $(KEA_CXXFLAGS)
-// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2025 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
Daemon::Daemon()
: signal_set_(), config_file_(""),
- pid_file_dir_(DATA_DIR), pid_file_(), am_file_author_(false),
+ pid_file_dir_(PIDFILE_DIR), pid_file_(), am_file_author_(false),
exit_value_(EXIT_SUCCESS) {
// The pid_file_dir can be overridden via environment variable
'log_parser.cc',
'process_messages.cc',
'redact_config.cc',
- cpp_args: [f'-DDATA_DIR="@DHCP_DATA_DIR@"'],
+ cpp_args: [f'-DPIDFILE_DIR="@LOCALSTATEDIR@/run/kea"'],
dependencies: [GTEST_DEP],
include_directories: [include_directories('.')] + INCLUDES,
install: true,
AM_CPPFLAGS += $(BOOST_INCLUDES)
AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/lib/process/tests\"
AM_CPPFLAGS += -DTEST_SCRIPT_SH=\"$(abs_top_builddir)/src/lib/process/tests/process_test.sh\"
-AM_CPPFLAGS += -DDATA_DIR="\"$(dhcp_data_dir)\""
+AM_CPPFLAGS += -DPIDFILE_DIR="\"$(dhcp_data_dir)\""
AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
AM_CXXFLAGS = $(KEA_CXXFLAGS)
-// Copyright (C) 2014-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2025 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// Check only instance values.
Daemon instance2;
EXPECT_TRUE(instance2.getConfigFile().empty());
- EXPECT_EQ(std::string(DATA_DIR), instance2.getPIDFileDir());
+ EXPECT_EQ(std::string(PIDFILE_DIR), instance2.getPIDFileDir());
EXPECT_TRUE(instance2.getPIDFileName().empty());
}
cpp_args: [
f'-DTEST_DATA_BUILDDIR="@current_build_dir@"',
f'-DTEST_SCRIPT_SH="@current_build_dir@/process_test.sh"',
- f'-DDATA_DIR="@DHCP_DATA_DIR@"',
+ f'-DPIDFILE_DIR="@LOCALSTATEDIR@/run/kea"',
],
include_directories: [include_directories('.')] + INCLUDES,
link_with: [kea_util_unittests_lib, libs_testutils] + LIBS_BUILT_SO_FAR,