Browse Source

Do like in rc.local and print the daemon name before running rc_stop.

ok robert@
OPENBSD_4_9
ajacoutot 14 years ago
parent
commit
383753a760
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.shutdown

+ 2
- 2
src/etc/rc.shutdown View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.shutdown,v 1.9 2010/11/17 13:43:19 ajacoutot Exp $
# $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), # If it exists, this script is run at system-shutdown by reboot(8),
# halt(8). If the architecture supports keyboard requested halting, # halt(8). If the architecture supports keyboard requested halting,
@ -12,7 +12,7 @@ echo -n 'stopping local daemons:'
while [ -n "${rc_scripts}" ]; do while [ -n "${rc_scripts}" ]; do
_r=${rc_scripts##* } _r=${rc_scripts##* }
rc_scripts=${rc_scripts%%*( )${_r}} rc_scripts=${rc_scripts%%*( )${_r}}
[ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop && echo -n " ${_r}"
[ -x /etc/rc.d/${_r} ] && echo -n " ${_r}" && /etc/rc.d/${_r} stop
done done
# Add your local shutdown actions here. # Add your local shutdown actions here.


Loading…
Cancel
Save