Send notification if stale lock is detected

add send notification along with e-mail notification on stale lock
check.

Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
This commit is contained in:
Josenivaldo Benito Jr 2016-08-31 16:36:29 -03:00
parent 637336a45d
commit 4f96d724b3

View file

@ -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
}