bin: Improve restart notification email
This commit is contained in:
parent
98e6ec3517
commit
edfe59e84f
1 changed files with 2 additions and 2 deletions
|
@ -52,11 +52,11 @@ while true; do
|
||||||
{
|
{
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Server was restarted at: ${TIME_FMT}
|
Server was restarted at: ${TIME_FMT}
|
||||||
The last 50 lines of the log before the error happens:
|
The last 50 lines of the log before the server exited:
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
tail -n 50 "${LOG}"
|
tail -n 50 "${LOG}"
|
||||||
} | mail -s "Pad Server was restarted" "$EMAIL_ADDRESS"
|
} | mail -s "Etherpad restarted" "$EMAIL_ADDRESS"
|
||||||
|
|
||||||
LAST_EMAIL_SEND=$TIME_NOW
|
LAST_EMAIL_SEND=$TIME_NOW
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue