Annotation of src/etc/rc.shutdown, Revision 1.8
1.8 ! robert 1: # $OpenBSD: rc.shutdown,v 1.7 2006/06/22 00:41:59 deraadt Exp $
1.1 deraadt 2: #
3: # If it exists, this script is run at system-shutdown by reboot(8),
1.5 deraadt 4: # halt(8). If the architecture supports keyboard requested halting,
5: # it is also run by init(8) when such an event happens.
1.1 deraadt 6: #
7:
1.7 deraadt 8: powerdown=NO # set to YES for powerdown
1.1 deraadt 9:
1.8 ! robert 10: echo -n 'stopping local daemons:'
! 11:
! 12: while [ -n "$rc_scripts" ]; do
! 13: _r=${rc_scripts##* }
! 14: rc_scripts=${rc_scripts%%*( )${_r}}
! 15: [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop && echo -n " ${_r}"
! 16: done
! 17:
! 18: # Add your local shutdown actions here.
! 19:
! 20: echo '.'