system-configs/etc/rc.shutdown

11 lines
339 B
Bash
Executable file

#!/bin/bash
# Default rc.shutdown for void; add your custom commands here.
#
# 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
}