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>

*** 19,28 **** --- 19,29 ---- # # CDDL HEADER END # # # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. + # Copyright 2017 Nexenta Systems, Inc. All rights reserved. # . /lib/svc/share/smf_include.sh . /lib/svc/share/fs_include.sh
*** 30,40 **** # mksavedir # Make sure that $DUMPADM_SAVDIR is set and exists. # mksavedir () { ! [ -z "$DUMPADM_SAVDIR" ] && DUMPADM_SAVDIR=/var/crash/`uname -n` [ -d "$DUMPADM_SAVDIR" ] || /usr/bin/mkdir -m 0700 -p $DUMPADM_SAVDIR } # # We haven't run savecore on a dump device yet --- 31,41 ---- # mksavedir # Make sure that $DUMPADM_SAVDIR is set and exists. # mksavedir () { ! [ -z "$DUMPADM_SAVDIR" ] && DUMPADM_SAVDIR=/var/crash [ -d "$DUMPADM_SAVDIR" ] || /usr/bin/mkdir -m 0700 -p $DUMPADM_SAVDIR } # # We haven't run savecore on a dump device yet