#
#
#
OLD_METHOD1="kill -HUP \`cat /var/run/syslog.pid\`"
OLD_METHOD2="kill -HUP \`cat /system/volatile/syslog.pid\`"
NEW_METHOD="/usr/sbin/svccfg -s $SVC_FMRI refresh"
if [ ! -f /etc/rsyslog.conf ]; then
echo "/etc/rsyslog.conf not found. Exiting."
exit $SMF_EXIT_ERR_CONFIG
fi
exit $SMF_EXIT_ERR_CONFIG
fi
exit $SMF_EXIT_ERR_CONFIG
fi
if [ $default = true ]; then
echo "$DEFAULT_FMRI conflicts with this instance and must be disabled first. Exiting."
exit $SMF_EXIT_ERR_CONFIG
fi
if smf_is_globalzone; then
#
# Before [r]syslogd starts, save any messages from
# previous crash dumps so that messages appear
# in chronological order.
#
# Need to be root to use savecore
if [ -r /etc/dumpadm.conf ]; then
. /etc/dumpadm.conf
[ -n "$DUMPADM_DEVICE" -a \
"$DUMPADM_DEVICE" != swap ] && \
fi
fi
fi
# Convert the old PID-file based post-command for logadm to an SMF-based one.
if [ $? -eq 0 ]; then
else
# In case the umask or group is odd.
mode=$(/usr/bin/stat -c %a $LOGADM_CONF)
owner_group=$(/usr/bin/stat -c %U:%G $LOGADM_CONF)
fi