equal
deleted
inserted
replaced
1 #!/usr/sbin/sh |
1 #!/usr/sbin/sh |
2 # |
2 # |
3 # CDDL HEADER START |
3 |
4 # |
4 # |
5 # The contents of this file are subject to the terms of the |
5 # Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
6 # Common Development and Distribution License (the "License"). |
|
7 # You may not use this file except in compliance with the License. |
|
8 # |
|
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 # or http://www.opensolaris.org/os/licensing. |
|
11 # See the License for the specific language governing permissions |
|
12 # and limitations under the License. |
|
13 # |
|
14 # When distributing Covered Code, include this CDDL HEADER in each |
|
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 # If applicable, add the following below this CDDL HEADER, with the |
|
17 # fields enclosed by brackets "[]" replaced with your own identifying |
|
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 # |
|
20 # CDDL HEADER END |
|
21 # |
|
22 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
|
23 # |
6 # |
24 |
7 |
25 . /lib/svc/share/smf_include.sh |
8 . /lib/svc/share/smf_include.sh |
26 |
9 |
27 SVC_FMRI=svc:/system/system-log |
10 SVC_FMRI=svc:/system/system-log |
56 # |
39 # |
57 # Before [r]syslogd starts, save any messages from |
40 # Before [r]syslogd starts, save any messages from |
58 # previous crash dumps so that messages appear |
41 # previous crash dumps so that messages appear |
59 # in chronological order. |
42 # in chronological order. |
60 # |
43 # |
|
44 # Need to be root to use savecore |
61 /usr/bin/savecore -m |
45 /usr/bin/savecore -m |
62 if [ -r /etc/dumpadm.conf ]; then |
46 if [ -r /etc/dumpadm.conf ]; then |
63 . /etc/dumpadm.conf |
47 . /etc/dumpadm.conf |
64 [ -n "$DUMPADM_DEVICE" -a \ |
48 [ -n "$DUMPADM_DEVICE" -a \ |
65 "$DUMPADM_DEVICE" != swap ] && \ |
49 "$DUMPADM_DEVICE" != swap ] && \ |
85 /usr/bin/mv $TMP_CONF $LOGADM_CONF |
69 /usr/bin/mv $TMP_CONF $LOGADM_CONF |
86 /usr/bin/chmod $mode $LOGADM_CONF |
70 /usr/bin/chmod $mode $LOGADM_CONF |
87 /usr/bin/chown $owner_group $LOGADM_CONF |
71 /usr/bin/chown $owner_group $LOGADM_CONF |
88 fi |
72 fi |
89 |
73 |
90 # The -c4 argument is needed to silence a compatibility warning. |
74 /usr/lib/rsyslog/rsyslogd >/dev/msglog 2>&1 |
91 /usr/lib/rsyslog/rsyslogd -c4 >/dev/msglog 2>&1 & |
|