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,4 @@
# This is run by runit in stage 2 before the services are executed # This is run by runit in stage 2 before the services are executed
# (see /etc/runit/2). # (see /etc/runit/2).
[[ -x /opt/bin/pushover-client ]] && /opt/bin/pushover-client -p -1 -m "Boot up: ${HOSTNAME%%.*}" ( sleep 10; [[ -x /opt/bin/pushover-client ]] && /opt/bin/pushover-client -p -1 -m "Boot up: ${HOSTNAME%%.*}" ) &

View file

@ -4,4 +4,8 @@
# This is run by runit in stage 3 after the services are stopped # This is run by runit in stage 3 after the services are stopped
# (see /etc/runit/3). # (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
}

View file

@ -0,0 +1 @@
[ -x /etc/rc.shutdown ] && /etc/rc.shutdown