#!/bin/bash

# 
# Copyright (C) 2009 NTT DATA INTELLILINK CORPORATION
# 
# 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, version 2.
# 
# 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.
# 
# Hinemos Tools
#
# Hinemos JMX Tool
#   JMX情報取得ツール停止スクリプト
# 
# @version 1.0.0
# @since 1.0.0
#

DIR=`dirname $0`
. ${DIR}/lib/hinemos_tools.cfg

kill `cat $HINEMOS_JMX_TOOL_PID`
if [ $? -eq 0 ] ; then
  rm $HINEMOS_JMX_TOOL_PID
  echo "JMXTool stopped"
fi
