You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
638 B

  1. --- a/src/bin/keactrl/keactrl.in
  2. +++ b/src/bin/keactrl/keactrl.in
  3. @@ -98,7 +98,7 @@ get_pid_from_file() {
  4. # Extract the name portion (from last slash to last dot) of the config file name
  5. # File name and extension are documented in src/lib/util/filename.h
  6. local conf_name
  7. - conf_name=$(basename -- "${kea_config_file}" | rev | cut -f2- -d'.' | rev)
  8. + conf_name=$(basename -- "${kea_config_file}" | awk '{for(i=length($0); i>0;i--) printf (substr($0,i,1));}' | cut -f2- -d'.' | awk '{for(i=length($0); i>0;i--) printf (substr($0,i,1));}')
  9. # Default the directory to --localstatedir / run
  10. local pid_file_dir