~ubuntu-branches/ubuntu/oneiric/opendrim-lmp-ssh/oneiric

« back to all changes in this revision

Viewing changes to registration/SSH-remove.sh

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2010-07-07 11:04:10 UTC
  • Revision ID: james.westby@ubuntu.com-20100707110410-2bojrtqjp582wiy8
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
#################################################################################
 
4
# Linux Management Providers (LMP), SSH provider package
 
5
# Copyright (C) 2010 Feng Zhanlei, REDFLAG <fengzhanlei@redflag-linux.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 Guillaume BOTTEX <guillaumebottex@uxsystem.net>, UXSystem, 2010
 
31
#################################################################################
 
32
 
 
33
if test "$2" = 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 "$2" = 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 "$2" = sfcb
 
52
then
 
53
        /etc/init.d/sfcb stop
 
54
fi
 
55
 
 
56
$4/registration/OpenDRIM_TCPProtocolEndpointBindsToIPProtocolEndpoint-remove.sh $1 $2 $3 $4
 
57
$4/registration/OpenDRIM_HostedSSHService-remove.sh $1 $2 $3 $4
 
58
$4/registration/OpenDRIM_SSHSettingData-remove.sh $1 $2 $3 $4
 
59
$4/registration/OpenDRIM_SSHServiceSettingData-remove.sh $1 $2 $3 $4
 
60
$4/registration/OpenDRIM_SSHServiceAccessBySAP-remove.sh $1 $2 $3 $4
 
61
$4/registration/OpenDRIM_SSHProtocolService-remove.sh $1 $2 $3 $4
 
62
$4/registration/OpenDRIM_SSHProtocolEndpointBindsToTCPProtocolEndpoint-remove.sh $1 $2 $3 $4
 
63
$4/registration/OpenDRIM_SSHConformsToProfile-remove.sh $1 $2 $3 $4
 
64
$4/registration/OpenDRIM_RegisteredSSHProfile-remove.sh $1 $2 $3 $4
 
65
$4/registration/OpenDRIM_HostedSSHAccessPoint-remove.sh $1 $2 $3 $4
 
66
$4/registration/OpenDRIM_SSHCapabilities-remove.sh $1 $2 $3 $4
 
67
$4/registration/OpenDRIM_SSHProtocolProvidesEndpoint-remove.sh $1 $2 $3 $4
 
68
$4/registration/OpenDRIM_SSHSessionSettingData-remove.sh $1 $2 $3 $4
 
69
$4/registration/OpenDRIM_TCPProtocolEndpoint-remove.sh $1 $2 $3 $4
 
70
$4/registration/OpenDRIM_SSHProtocolCapabilities-remove.sh $1 $2 $3 $4
 
71
$4/registration/OpenDRIM_SSHProtocolEndpoint-remove.sh $1 $2 $3 $4
 
72
 
 
73
if test "$2" = sfcb
 
74
then
 
75
        /etc/init.d/sfcb start
 
76
fi
 
77