Merge pull request #134 from jrbenito/issue_sendnotification_and_email

Send notification if stale lock is detected
This commit is contained in:
zertrin 2016-08-31 22:00:19 +02:00 committed by GitHub
commit 1238c14af6

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
}