[BACK]Return to rc.shutdown CVS log [TXT][DIR] Up to [local] / src / etc

Annotation of src/etc/rc.shutdown, Revision 1.9

1.9     ! ajacouto    1: #      $OpenBSD: rc.shutdown,v 1.8 2010/10/26 20:56:03 robert 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:
1.9     ! ajacouto   12: while [ -n "${rc_scripts}" ]; do
1.8       robert     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 '.'