#
#  Copyright Red Hat Inc., 2002
#  Copyright Mission Critical Linux, 2000
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by the
#  Free Software Foundation; either version 2, or (at your option) any
#  later version.
#
#  This program is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; see the file COPYING.  If not, write to the
#  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge, 
#  MA 02139, USA.
#

# $Revision: 1.11 $
#
# Author: Gregory P. Myrdal <Myrdal@MissionCriticalLinux.Com>

#
# Shell global variables
#

DEBUG=yes

#
# Cluster utilities
#
typeset CLUSTER_BIN=/usr/sbin
typeset CLULOG=$CLUSTER_BIN/clulog
typeset GETCONFIG=$CLUSTER_BIN/clugetconfig
typeset CLUDB=$CLUSTER_BIN/cludb
typeset GETDEVT=$CLUSTER_BIN/getdevt
typeset GRATUITOUSARP=$CLUSTER_BIN/cluarp
typeset INVALIDATEBUFFERS=$CLUSTER_BIN/clubufflush
typeset NFSOPS=$CLUSTER_BIN/clunfsops
typeset RMTABD=$CLUSTER_BIN/clurmtabd
typeset FINDHOST=$CLUSTER_BIN/clufindhostname

#
# Cluster configuration database information
#
typeset DB=/etc/cluster.xml			# cluster database
typeset SEP=%					# config file char separator

#
# Directories
#

#
# Return status 
#
# Note: these should stay the same as svcmgr.h
#
typeset SUCCESS=0
typeset FAIL=1
typeset YES=2
typeset NO=3
typeset NOT_FOUND=4
typeset TIMEOUT=5


#
# Service owners
#
# Note: these should stay the same as svcmgr.h
#
typeset SVC_OWNER_NOBODY=-1

#
# Values for the service database entries
#
# Note: these should stay the same as svcmgr.h
#
typeset YES_STR="yes"
typeset NO_STR="no"

#
# Service Manager database entry strings
#
# Note: these should stay the same as svcmgr.h
#
typeset SVCMGR_STR="clusvcmgrd"
typeset SVCMGR_LOGLEVEL_STR="logLevel"
typeset SVCMGR_SVC_STOP_FAIL_STR="svcStopFailureAction"		# not used
typeset SVCMGR_EXIT_FAIL_STR="exitFailureAction"		# not used
typeset SVCMGR_NFS_LOCK="nfs_lock_workaround"

#
# Service database entry strings.  These are the strings that are entered
# in the service database to describe the service.  Some of these entries
# are labels where the real values are in sub-sections.  Refer to the
# service database description file for more information.
#
# Note: these should stay the same as svcmgr.h
#
typeset SVC_SERVICES_LIST_STR="services"
typeset SVC_SERVICE_STR="service"
typeset SVC_NAME_STR="name"
typeset SVC_PREFERRED_NODE_STR="preferredNode"
typeset SVC_USER_SCRIPT_STR="userScript"
typeset SVC_NETWORK_LIST_STR="service_ipaddresses"
typeset SVC_NETWORK_STR="service_ipaddress"
typeset SVC_IP_ADDR_STR="ipAddress"
typeset SVC_LINKMON_STR="monitor_link"
typeset SVC_NETMASK_STR="netmask"
typeset SVC_BROADCAST_STR="broadcast"
typeset SVC_DEVICE_STR="device"
typeset SVC_DEVICE_NAME_STR="name"
typeset SVC_MOUNT_STR="mount"
typeset SVC_MOUNT_NAME_STR="mountpoint"
typeset SVC_MOUNT_UQUOTA_STR="user_quota"
typeset SVC_MOUNT_GQUOTA_STR="group_quota"
typeset SVC_MOUNT_FSTYPE_STR="fstype"
typeset SVC_MOUNT_OPTIONS_STR="options"
typeset SVC_FORCE_UNMOUNT_STR="forceUnmount"
typeset SVC_NFS_STR="NFS"
typeset SVC_EXPORT_DIR_STR="nfsexport"
typeset SVC_EXPORT_NAME_STR="name"
typeset SVC_EXPORT_CLIENT_STR="client"
typeset SVC_EXPORT_CLIENT_NAME_STR="name"
typeset SVC_EXPORT_CLIENT_OPTIONS_STR="options"
typeset SVC_DEVICE_OWNER_STR="owner"
typeset SVC_DEVICE_GROUP_STR="group"
typeset SVC_DEVICE_MODE_STR="mode"       
typeset SVC_DEVICE_SHARE_NAME="sharename"       

typeset MIN_TOKEN_ID=0		# must be the same as in svcmgr.h
