From fa109e216b54d65e8d8faee64fc3db005c21a846 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 21 Apr 2020 09:03:18 +0200 Subject: [PATCH] Give the pid of the new process --- lib/bkctld-rm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bkctld-rm b/lib/bkctld-rm index fb61452..67616f4 100755 --- a/lib/bkctld-rm +++ b/lib/bkctld-rm @@ -21,7 +21,7 @@ kill_or_clean_lockfile() { kill -9 "${pid}" # 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})" + warning "Process \`${pid}' (started at ${lockfile_date}) has been killed by \`$$'" else warning "Process not found at PID \`${pid}'. Ignoring lock file \`${lock_file}'." fi