]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1142] fixed extracting extension
authorRazvan Becheriu <razvan@isc.org>
Thu, 2 Apr 2020 16:14:14 +0000 (19:14 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 17 Apr 2020 22:18:25 +0000 (22:18 +0000)
src/bin/keactrl/keactrl.in

index 3d4b3aa8038d4d67d6df311ccac8cba7b5cb8928..4422b9955ba71d40d98f3866e701e8e56a14446d 100644 (file)
@@ -97,7 +97,7 @@ get_pid_from_file() {
 
     # Extract the name portion of the config file
     local conf_name
-    conf_name=$(basename -- "${kea_config_file}" | cut -f1 -d'.')
+    conf_name=$(basename -- "${kea_config_file}" | rev | cut -f2- -d'.' | rev)
 
     # Default the directory to --localstatedir / run
     local pid_file_dir