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,4 @@
|
|||
# This is run by runit in stage 2 before the services are executed
|
||||
# (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%%.*}" ) &
|
||||
|
|
|
|||
|
|
@ -4,4 +4,8 @@
|
|||
# This is run by runit in stage 3 after the services are stopped
|
||||
# (see /etc/runit/3).
|
||||
|
||||
[[ ! -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
|
||||
}
|
||||
|
|
|
|||
1
etc/runit/shutdown.d/00-rc-shutdown.sh
Normal file
1
etc/runit/shutdown.d/00-rc-shutdown.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
[ -x /etc/rc.shutdown ] && /etc/rc.shutdown
|
||||
Loading…
Add table
Add a link
Reference in a new issue