An empty lock file shouldn't stop the program

This commit is contained in:
Jérémy Lecour 2020-05-01 09:52:06 +02:00 committed by Jérémy Lecour
parent ebfc16f65a
commit 9cd94dabc2

View file

@ -26,7 +26,7 @@ kill_or_clean_lockfile() {
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
else else
error "Empty lockfile \`${lock_file}'. It should contain a PID." warning "Empty lockfile \`${lock_file}'. It should contain a PID."
fi fi
# Remove the lock file # Remove the lock file
rm -f ${lock_file} rm -f ${lock_file}