Bug 9218 - service cloud-management restart OR stop FAILED (edit)

Resloved Fixed
This commit is contained in:
Frank 2011-04-05 20:42:17 -07:00
parent 1bc498013e
commit cfa40b6d73
3 changed files with 99 additions and 75 deletions

View File

@ -27,14 +27,7 @@ fi
NAME="$(basename $0)" NAME="$(basename $0)"
stop() {
# See how we were called.
case "$1" in
status)
status ${NAME}
RETVAL=$?
;;
stop)
SHUTDOWN_WAIT="30" SHUTDOWN_WAIT="30"
count="0" count="0"
if [ -f /var/run/cloud-management.pid ]; then if [ -f /var/run/cloud-management.pid ]; then
@ -55,6 +48,21 @@ case "$1" in
echo "Cannot find PID file of Cloud-management" echo "Cannot find PID file of Cloud-management"
log_failure_msg "Stopping Cloud-management" log_failure_msg "Stopping Cloud-management"
fi fi
}
# See how we were called.
case "$1" in
status)
status ${NAME}
RETVAL=$?
;;
stop)
stop
;;
restart)
stop
set start
. /etc/rc.d/init.d/tomcat6
;; ;;
*) *)
. /etc/rc.d/init.d/tomcat6 . /etc/rc.d/init.d/tomcat6

View File

@ -27,14 +27,7 @@ fi
NAME="$(basename $0)" NAME="$(basename $0)"
stop() {
# See how we were called.
case "$1" in
status)
status ${NAME}
RETVAL=$?
;;
stop)
SHUTDOWN_WAIT="30" SHUTDOWN_WAIT="30"
count="0" count="0"
if [ -f /var/run/cloud-management.pid ]; then if [ -f /var/run/cloud-management.pid ]; then
@ -55,6 +48,21 @@ case "$1" in
echo "Cannot find PID file of Cloud-management" echo "Cannot find PID file of Cloud-management"
log_failure_msg "Stopping Cloud-management" log_failure_msg "Stopping Cloud-management"
fi fi
}
# See how we were called.
case "$1" in
status)
status ${NAME}
RETVAL=$?
;;
stop)
stop
;;
restart)
stop
set start
. /etc/rc.d/init.d/tomcat6
;; ;;
*) *)
. /etc/rc.d/init.d/tomcat6 . /etc/rc.d/init.d/tomcat6

View File

@ -27,14 +27,7 @@ fi
NAME="$(basename $0)" NAME="$(basename $0)"
stop() {
# See how we were called.
case "$1" in
status)
status ${NAME}
RETVAL=$?
;;
stop)
SHUTDOWN_WAIT="30" SHUTDOWN_WAIT="30"
count="0" count="0"
if [ -f /var/run/cloud-management.pid ]; then if [ -f /var/run/cloud-management.pid ]; then
@ -55,6 +48,21 @@ case "$1" in
echo "Cannot find PID file of Cloud-management" echo "Cannot find PID file of Cloud-management"
log_failure_msg "Stopping Cloud-management" log_failure_msg "Stopping Cloud-management"
fi fi
}
# See how we were called.
case "$1" in
status)
status ${NAME}
RETVAL=$?
;;
stop)
stop
;;
restart)
stop
set start
. /etc/rc.d/init.d/tomcat6
;; ;;
*) *)
. /etc/rc.d/init.d/tomcat6 . /etc/rc.d/init.d/tomcat6