Update rc.{local,shutdown} and modify shutdown procedure.
This commit is contained in:
parent
e45f63634b
commit
747d61a446
3 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue