Added new pushover script + config. Adjust command line usage for new script.

This commit is contained in:
Darren 'Tadgy' Austin 2021-01-28 01:56:44 +00:00
commit 68b98281bd
7 changed files with 365 additions and 2 deletions

View file

@ -63,4 +63,4 @@ grep "^seeder:" /etc/passwd >/dev/null 2>&1 && su - seeder -c /home/seeder/start
}
# Notify that the server has booted.
/opt/bin/pushover -a server -t "Successful boot up: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')" >/dev/null
/opt/bin/pushover -T "Successful boot up: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')"

View file

@ -3,7 +3,7 @@
# This script will be run when the system is shutdown or rebooted.
# Notify that the server is shutting down.
/opt/bin/pushover -a server -t "Shutting down: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')" >/dev/null
/opt/bin/pushover -T "Shutting down: ${HOSTNAME%%.*}" -p 1 -m "$(printf '%(%d %b %Y - %H:%M:%S)T')"
# Stop containers.
[ -x /etc/rc.d/rc.lxc ] && /etc/rc.d/rc.lxc stop