Update rc.{local,shutdown} and modify shutdown procedure.

This commit is contained in:
Darren 'Tadgy' Austin 2023-11-05 19:00:09 +00:00
commit 747d61a446
3 changed files with 7 additions and 2 deletions

View file

@ -4,4 +4,8 @@
# This is run by runit in stage 3 after the services are stopped
# (see /etc/runit/3).
[[ -x /opt/bin/pushover-client ]] && /opt/bin/pushover-client -p -1 -m "Shutting down: ${HOSTNAME%%.*}"
[[ ! -e /run/rc-shutdown-ran ]] && {
[[ -x /opt/bin/pushover-client ]] && /opt/bin/pushover-client -p -1 -m "Shutting down: ${HOSTNAME%%.*}"
toch /run/rc-shutdown-ran
}