~ubuntu-branches/ubuntu/precise/opendrim-lmp-systemmemory/precise

« back to all changes in this revision

Viewing changes to registration/SystemMemory.sh

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2009-08-19 17:59:51 UTC
  • Revision ID: james.westby@ubuntu.com-20090819175951-5oyo0quauom59ex5
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
################################################################################
 
4
# Linux Management Providers (LMP), System Memory provider package
 
5
# Copyright (C) 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
 
6
 
7
# This program is being developed under the "OpenDRIM" project.
 
8
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
 
9
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
 
10
 
11
# This program is free software; you can redistribute it and/or
 
12
# modify it under the terms of the GNU General Public License
 
13
# as published by the Free Software Foundation; version 2
 
14
# of the License.
 
15
 
16
# This program is distributed in the hope that it will be useful,
 
17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
# GNU General Public License for more details.
 
20
 
21
# You should have received a copy of the GNU General Public License
 
22
# along with this program; if not, write to the Free Software
 
23
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
24
#################################################################################
 
25
 
 
26
#################################################################################
 
27
# To contributors, please leave your contact information in this section
 
28
# AND comment your changes in the source code.
 
29
 
30
# Modified by <Author(s)>, <Affiliation>, <Year>
 
31
################################################################################
 
32
 
 
33
if test "$3" = pegasus
 
34
then
 
35
        if !( ps -C cimserver > /dev/null 2>&1 )
 
36
        then
 
37
                echo "ERROR: Pegasus CIM server is not running"
 
38
                exit 1
 
39
        fi
 
40
fi
 
41
 
 
42
if test "$3" = openwbem
 
43
then
 
44
        if !( ps -C owcimomd > /dev/null 2>&1 )
 
45
        then
 
46
                echo "ERROR: OpenWBEM CIM server is not running"
 
47
                exit 1
 
48
        fi
 
49
fi
 
50
 
 
51
if test "$3" = sfcb
 
52
then
 
53
        /etc/init.d/sfcb stop
 
54
fi
 
55
 
 
56
$6/registration/OpenDRIM_MemoryCapabilities.sh $1 $2 $3 $4 $5 $6
 
57
$6/registration/OpenDRIM_MemoryConformsToProfile.sh $1 $2 $3 $4 $5 $6
 
58
$6/registration/OpenDRIM_Memory.sh $1 $2 $3 $4 $5 $6
 
59
$6/registration/OpenDRIM_EnabledMemoryCapabilities.sh $1 $2 $3 $4 $5 $6
 
60
$6/registration/OpenDRIM_ComputerSystemMemory.sh $1 $2 $3 $4 $5 $6
 
61
$6/registration/OpenDRIM_RegisteredMemoryProfile.sh $1 $2 $3 $4 $5 $6
 
62
 
 
63
if test "$3" = sfcb
 
64
then
 
65
        /etc/init.d/sfcb start
 
66
fi
 
67