Print this page
7928 Add support for SMF_EXIT_TEMP_TRANSIENT

@@ -22,10 +22,12 @@
 
 #
 # 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,12 +41,11 @@
 
 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"
+        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,12 +59,11 @@
 #
 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"
+        exit "$SMF_EXIT_TEMP_TRANSIENT"
 fi
 
 if [ ! -x "$LDMAD" ]; then
         echo "The $SVCNAME service requires the $LDMAD executable." 
         exit "$SMF_EXIT_ERR_CONFIG"