Print this page
NEX-9586 remove nodename from the default savecore directory path
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dumpadm/svc-dumpadm
          +++ new/usr/src/cmd/dumpadm/svc-dumpadm
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # When distributing Covered Code, include this CDDL HEADER in each
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
       24 +# Copyright 2017 Nexenta Systems, Inc. All rights reserved.
  24   25  #
  25   26  
  26   27  . /lib/svc/share/smf_include.sh
  27   28  . /lib/svc/share/fs_include.sh
  28   29  
  29   30  #
  30   31  # mksavedir
  31   32  # Make sure that $DUMPADM_SAVDIR is set and exists.
  32   33  #
  33   34  mksavedir ()
  34   35  {
  35      -        [ -z "$DUMPADM_SAVDIR" ] && DUMPADM_SAVDIR=/var/crash/`uname -n`
       36 +        [ -z "$DUMPADM_SAVDIR" ] && DUMPADM_SAVDIR=/var/crash
  36   37          [ -d "$DUMPADM_SAVDIR" ] || /usr/bin/mkdir -m 0700 -p $DUMPADM_SAVDIR
  37   38  }
  38   39  
  39   40  #
  40   41  # We haven't run savecore on a dump device yet
  41   42  #
  42   43  savedev=none
  43   44  
  44   45  #
  45   46  # If we previously crashed early in boot before dumpadm was used to configure
↓ open down ↓ 123 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX