Print this page
6805730 some simple changes would make 'init 5' much faster
6809492 startd shouldn't let hung subprocesses impede shutdown

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/initpkg/rc0.sh
          +++ new/usr/src/cmd/initpkg/rc0.sh
   1    1  #!/sbin/sh
   2    2  #
   3    3  # CDDL HEADER START
   4    4  #
   5    5  # The contents of this file are subject to the terms of the
   6      -# Common Development and Distribution License, Version 1.0 only
   7      -# (the "License").  You may not use this file except in compliance
   8      -# with the License.
        6 +# Common Development and Distribution License (the "License").
        7 +# You may not use this file except in compliance with the License.
   9    8  #
  10    9  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11   10  # or http://www.opensolaris.org/os/licensing.
  12   11  # See the License for the specific language governing permissions
  13   12  # and limitations under the License.
  14   13  #
  15   14  # When distributing Covered Code, include this CDDL HEADER in each
  16   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17   16  # If applicable, add the following below this CDDL HEADER, with the
  18   17  # fields enclosed by brackets "[]" replaced with your own identifying
  19   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  20   19  #
  21   20  # CDDL HEADER END
  22   21  #
  23   22  #
  24   23  # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
  25   24  # All rights reserved.
  26   25  #
  27   26  #
  28      -# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
       27 +# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  29   28  # Use is subject to license terms.
  30   29  #
  31      -#ident  "%Z%%M% %I%     %E% SMI"
  32   30  
  33   31  # "Run Commands" for init states 0, 5 and 6.
  34   32  
  35   33  PATH=/usr/sbin:/usr/bin
  36   34  
  37   35  if [ -z "$SMF_RESTARTER" ]; then
  38   36          echo "Cannot be run outside smf(5)"
  39   37          exit 1
  40   38  fi
  41   39  
↓ open down ↓ 37 lines elided ↑ open up ↑
  79   77                                  *.sh)   /lib/svc/bin/lsvcrun -s  $f start;;
  80   78                                  *)      /lib/svc/bin/lsvcrun $f start ;;
  81   79                          esac
  82   80                  fi
  83   81          done
  84   82  fi
  85   83  
  86   84  [ -f /etc/.dynamic_routing ] && /usr/bin/rm -f /etc/.dynamic_routing
  87   85  
  88   86  trap "" 15
  89      -
  90      -[ -x /usr/lib/acct/closewtmp ] && /usr/lib/acct/closewtmp
  91      -/sbin/sync; /sbin/sync; /sbin/sync
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX