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:
parent
637336a45d
commit
4f96d724b3
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 failed, could not acquire ${LOCKFILE}" | tee -a "${LOGFILE}" >&2
|
||||||
echo "lock held by $(cat "${LOCKFILE}")" | tee -a "${LOGFILE}" >&2
|
echo "lock held by $(cat "${LOCKFILE}")" | tee -a "${LOGFILE}" >&2
|
||||||
email_logfile
|
email_logfile
|
||||||
|
send_notification
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue