Return to rc.shutdown CVS log | Up to [local] / src / etc |
File: [local] / src / etc / Attic / rc.shutdown (download)
Revision 1.10, Fri Nov 26 08:09:35 2010 UTC (13 years, 6 months ago) by ajacoutot
Do like in rc.local and print the daemon name before running rc_stop. ok robert@ |
# $OpenBSD: rc.shutdown,v 1.10 2010/11/26 08:09:35 ajacoutot 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} ] && echo -n " ${_r}" && /etc/rc.d/${_r} stop done # Add your local shutdown actions here. echo '.'