diff --git a/lib/bkctld-rm b/lib/bkctld-rm index c5851a7..67e3024 100755 --- a/lib/bkctld-rm +++ b/lib/bkctld-rm @@ -19,7 +19,9 @@ kill_or_clean_lockfile() { pkill -9 --parent "${pid}" # Kill the parent kill -9 "${pid}" - warning "Process ${pid} has been killed. Only one ${0} can run in parallel, the latest wins." + # Only one bkctld-rm can run in parallel, the latest wins + lockfile_date=$(date --date "@$(stat -c %Y ${lock_file})" +"%Y-%m-%d %H:%M:%S") + warning "Process \`${pid}' has been killed (was running since ${lockfile_date})" else warning "Process not found at PID \`${pid}'. Ignoring lock file \`${lock_file}'." fi