Print this page
7928 Add support for SMF_EXIT_TEMP_TRANSIENT
*** 22,31 ****
--- 22,33 ----
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+ # Copyright 2017 RackTop Systems.
+ #
. /lib/svc/share/smf_include.sh
SVCNAME='Logical Domains agents'
LDMAD='/usr/lib/ldoms/ldmad'
*** 39,50 ****
if smf_is_nonglobalzone; then
echo "The $SVCNAME service has been disabled because " \
"it is not supported in a local zone."
/usr/sbin/svcadm disable "$SMF_FMRI"
! sleep 5 &
! exit "$SMF_EXIT_OK"
fi
#
# The Logical Domains agents service is enabled by default on sun4v platforms.
# However it can fail to start if the domain has a machine description in which
--- 41,51 ----
if smf_is_nonglobalzone; then
echo "The $SVCNAME service has been disabled because " \
"it is not supported in a local zone."
/usr/sbin/svcadm disable "$SMF_FMRI"
! exit "$SMF_EXIT_TEMP_TRANSIENT"
fi
#
# The Logical Domains agents service is enabled by default on sun4v platforms.
# However it can fail to start if the domain has a machine description in which
*** 58,69 ****
#
if [ ! -c "$VLDS" ]; then
echo "The $SVCNAME service has been disabled because the system" \
"has no virtual domain service (vlds) device."
/usr/sbin/svcadm disable -t "$SMF_FMRI"
! sleep 5 &
! exit "$SMF_EXIT_OK"
fi
if [ ! -x "$LDMAD" ]; then
echo "The $SVCNAME service requires the $LDMAD executable."
exit "$SMF_EXIT_ERR_CONFIG"
--- 59,69 ----
#
if [ ! -c "$VLDS" ]; then
echo "The $SVCNAME service has been disabled because the system" \
"has no virtual domain service (vlds) device."
/usr/sbin/svcadm disable -t "$SMF_FMRI"
! exit "$SMF_EXIT_TEMP_TRANSIENT"
fi
if [ ! -x "$LDMAD" ]; then
echo "The $SVCNAME service requires the $LDMAD executable."
exit "$SMF_EXIT_ERR_CONFIG"