3
# SGE configuration script (Installation/Uninstallation/Upgrade/Downgrade)
4
# Scriptname: inst_qmaster.sh
5
# Module: qmaster installation functions
8
##########################################################################
10
# The Contents of this file are made available subject to the terms of
11
# the Sun Industry Standards Source License Version 1.2
13
# Sun Microsystems Inc., March, 2001
16
# Sun Industry Standards Source License Version 1.2
17
# =================================================
18
# The contents of this file are subject to the Sun Industry Standards
19
# Source License Version 1.2 (the "License"); You may not use this file
20
# except in compliance with the License. You may obtain a copy of the
21
# License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
23
# Software provided under this License is provided on an "AS IS" basis,
24
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
25
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
26
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
27
# See the License for the specific provisions governing your rights and
28
# obligations concerning the Software.
30
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
32
# Copyright: 2001 by Sun Microsystems, Inc.
34
# All Rights Reserved.
36
##########################################################################
40
#-------------------------------------------------------------------------
41
# The service tags support
42
# uses $UPDATE, $QMASTER,
46
SGE_ST_CMD=util/sgeST/sge_st
48
if [ "$QMASTER" = "install" ]; then
50
st_supported=`$SGE_ST_CMD "supported"`
51
if [ "$st_supported" = "true" ]; then
53
$INFOTEXT "Service Tags are a monitoring technology by SUN Microsystems.\n" \
54
"A Service Tag enables automatic discovery of systems, software, and services\n" \
55
"and allows the asset information to be monitored over a local network.\n"
57
$INFOTEXT -auto $AUTO -ask "y" "n" -def "y" -n "\nAre you going to enable Service Tags support? (y/n) [y] >> "
59
if [ "$AUTO" != "true" ]; then
63
SERVICE_TAGS="disable"
67
if [ "$SERVICE_TAGS" = "enable" ]; then
68
$SGE_ST_CMD "enable" > /dev/null
70
$SGE_ST_CMD "disable" > /dev/null
73
elif [ $QMASTER = "uninstall" ]; then
74
$SGE_ST_CMD "unregister" > /dev/null