]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1142] added comments
authorRazvan Becheriu <razvan@isc.org>
Fri, 17 Apr 2020 14:26:48 +0000 (17:26 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 17 Apr 2020 22:18:25 +0000 (22:18 +0000)
src/bin/keactrl/keactrl.in
src/bin/keactrl/tests/keactrl_tests.sh.in

index 4422b9955ba71d40d98f3866e701e8e56a14446d..976f0f3dc3bd69e1b34197b4600693904ffeba6f 100644 (file)
@@ -95,7 +95,7 @@ get_pid_from_file() {
         ;;
     esac
 
-    # Extract the name portion of the config file
+    # Extract the name portion (from last slash to last dot) of the config file name
     local conf_name
     conf_name=$(basename -- "${kea_config_file}" | rev | cut -f2- -d'.' | rev)
 
index 2265193e6e5e759dc385b29910578d66c49b88d4..7e3748c2e0bc6beab568c67c9bef46c154fc6f10 100644 (file)
@@ -16,6 +16,8 @@ keactrl=@abs_top_builddir@/src/bin/keactrl/keactrl
 @HAVE_SYSREPO_FALSE@have_netconf=0
 @HAVE_SYSREPO_TRUE@have_netconf=1
 
+# Configuration file names need to have two '.' to check proper extension detection.
+# This is why the names contain '.conf' followed by the extension which is '.json'
 # Names for DHCPv4
 DHCP4_CFG_FILE_NAME="dhcp4_test_config.conf"
 DHCP4_CFG_FILE=@abs_top_builddir@/src/bin/keactrl/tests/${DHCP4_CFG_FILE_NAME}.json