1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 # Settings that affect all the startd tests
  28 
  29 # return codes for service methods
  30 SVC_METHOD_MAINTEXIT=100
  31 SVC_METHOD_OTHEREXIT=50
  32 # return codes for monitors ... they should be exported somewhere global too
  33 SVC_ONLINE=100
  34 SVC_DEGRADED=101
  35 SVC_OFFLINE=102
  36 
  37 export SVC_METHOD_MAINTEXIT SVC_METHOD_OTHEREXIT SVC_ONLINE SVC_OFFLINE \
  38         SVC_DEGRADED
  39 
  40 # these are 'workaround/limitation' in functionality
  41 MONITORS_AVAILABLE=0
  42 # degraded is properly speaking a subset of monitors.
  43 DEGRADED_AVAILABLE=1
  44 # does refresh work ... this should be done using code
  45 REFRESH_AVAILABLE=1
  46 # is the enable method available
  47 METH_ENABLE_AVAILABLE=0
  48 # is the disable method available
  49 METH_DISABLE_AVAILABLE=0
  50 # is the 'to maintenance' return value available for methods
  51 TOMAINT_AVAILABLE=1
  52 # are timeouts implemented
  53 TIMEOUT_AVAILABLE=1
  54 # are service level dependencies available
  55 SERVICEDEPS_AVAILABLE=0
  56 
  57 # mtst is 'blacklisted' until the panicing tests can be resolved
  58 MTST_AVAILABLE=0
  59 
  60 export MONITORS_AVAILABLE DEGRADED_AVAILABLE REFRESH_AVAILABLE \
  61         METH_ENABLE_AVAILABLE METH_DISABLE_AVAILABLE TOMAINT_AVAILABLE \
  62         TIMEOUT_AVAILABLE MTST_AVAILABLE SERVICEDEPS_AVAILABLE