~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/dist/util/install_modules/inst_st.sh

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh 
 
2
#
 
3
# SGE configuration script (Installation/Uninstallation/Upgrade/Downgrade)
 
4
# Scriptname: inst_qmaster.sh
 
5
# Module: qmaster installation functions
 
6
#
 
7
#___INFO__MARK_BEGIN__
 
8
##########################################################################
 
9
#
 
10
#  The Contents of this file are made available subject to the terms of
 
11
#  the Sun Industry Standards Source License Version 1.2
 
12
#
 
13
#  Sun Microsystems Inc., March, 2001
 
14
#
 
15
#
 
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
 
22
#
 
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.
 
29
#
 
30
#  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
31
#
 
32
#  Copyright: 2001 by Sun Microsystems, Inc.
 
33
#
 
34
#  All Rights Reserved.
 
35
#
 
36
##########################################################################
 
37
#___INFO__MARK_END__
 
38
 
 
39
 
 
40
#-------------------------------------------------------------------------
 
41
# The service tags support
 
42
# uses $UPDATE, $QMASTER, 
 
43
#
 
44
ServiceTagsSupport()
 
45
{
 
46
   SGE_ST_CMD=util/sgeST/sge_st
 
47
 
 
48
   if [ "$QMASTER" = "install" ]; then
 
49
 
 
50
      st_supported=`$SGE_ST_CMD "supported"`
 
51
      if [ "$st_supported" = "true" ]; then
 
52
         $CLEAR
 
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"
 
56
 
 
57
         $INFOTEXT -auto $AUTO -ask "y" "n" -def "y" -n "\nAre you going to enable Service Tags support? (y/n) [y] >> "
 
58
         ret=$?
 
59
         if [ "$AUTO" != "true" ]; then
 
60
            if [ $ret = 0 ]; then
 
61
               SERVICE_TAGS="enable"
 
62
            else
 
63
               SERVICE_TAGS="disable"
 
64
            fi
 
65
         fi
 
66
 
 
67
         if [ "$SERVICE_TAGS" = "enable" ]; then
 
68
            $SGE_ST_CMD "enable" > /dev/null
 
69
         else
 
70
            $SGE_ST_CMD "disable" > /dev/null
 
71
         fi
 
72
      fi
 
73
   elif [ $QMASTER = "uninstall" ]; then
 
74
      $SGE_ST_CMD "unregister" > /dev/null 
 
75
   fi
 
76
}