summaryrefslogtreecommitdiff
path: root/etc/rc.shutdown
blob: 2031f69483fa2219a52ace4f44a7aa5d4cbb4680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#	$OpenBSD: rc.shutdown,v 1.11 2011/03/17 16:43:51 robert Exp $
#
# If it exists, this script is run at system-shutdown by reboot(8),
# halt(8).  If the architecture supports keyboard requested halting,
# it is also run by init(8) when such an event happens.
#

powerdown=NO	# set to YES for powerdown

echo -n 'stopping local daemons:'

while [ -n "${rc_scripts}" ]; do
	_r=${rc_scripts##* }
	rc_scripts=${rc_scripts%%*( )${_r}}
	[ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop
done

# Add your local shutdown actions here.

echo '.'