Merge pull request #134 from jrbenito/issue_sendnotification_and_email
Send notification if stale lock is detected
This commit is contained in:
commit
1238c14af6
1 changed files with 1 additions and 0 deletions
|
|
@ -439,6 +439,7 @@ get_lock()
|
|||
echo "lock failed, could not acquire ${LOCKFILE}" | tee -a "${LOGFILE}" >&2
|
||||
echo "lock held by $(cat "${LOCKFILE}")" | tee -a "${LOGFILE}" >&2
|
||||
email_logfile
|
||||
send_notification
|
||||
exit 2
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue