Give the pid of the new process
This commit is contained in:
parent
4829232a65
commit
fa109e216b
|
@ -21,7 +21,7 @@ kill_or_clean_lockfile() {
|
||||||
kill -9 "${pid}"
|
kill -9 "${pid}"
|
||||||
# Only one bkctld-rm 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")
|
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
|
else
|
||||||
warning "Process not found at PID \`${pid}'. Ignoring lock file \`${lock_file}'."
|
warning "Process not found at PID \`${pid}'. Ignoring lock file \`${lock_file}'."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue