Print this page
NEX-6513 IPMP should be a proper service and not require manual daemon startup
Reviewed by: Steve Peng <steve.peng@nexenta.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/milestone/net-init
          +++ new/usr/src/cmd/svc/milestone/net-init
↓ open down ↓ 42 lines elided ↑ open up ↑
  43   43  # In the global zone and exclusive-IP zones we proceed.
  44   44  #
  45   45  smf_configure_ip || exit $SMF_EXIT_OK
  46   46  
  47   47  # Configure IPv6 Default Address Selection.
  48   48  if [ -f /etc/inet/ipaddrsel.conf ]; then
  49   49          /usr/sbin/ipaddrsel -f /etc/inet/ipaddrsel.conf
  50   50  fi
  51   51  
  52   52  #
  53      -# If explicit IPMP groups are being used, in.mpathd will already be started.
  54      -# However, if TRACK_INTERFACES_ONLY_WITH_GROUPS=no and no explicit IPMP
  55      -# groups have been configured, then it still needs to be started.  So, fire
  56      -# it up in "adopt" mode; if there are no interfaces it needs to manage, it
  57      -# will automatically exit.
  58      -#
  59      -/usr/bin/pgrep -x -u 0 -z `smf_zonename` in.mpathd >/dev/null 2>&1 || \
  60      -    /usr/lib/inet/in.mpathd -a
  61      -
  62      -#
  63   53  # Set the RFC 1948 entropy, regardless of if I'm using it or not.  If present,
  64   54  # use the encrypted root password as a source of entropy.  Otherwise,
  65   55  # just use the pre-set (and hopefully difficult to guess) entropy that
  66   56  # tcp used when it loaded.
  67   57  #
  68   58  encr=`/usr/bin/awk -F: '/^root:/ {print $2}' /etc/shadow`
  69   59  [ -z "$encr" ] || /usr/sbin/ndd -set /dev/tcp tcp_1948_phrase $encr
  70   60  unset encr
  71   61  
  72   62  # Set the SDP system Policy.  This needs to happen after basic
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX