#!/bin/bash
#
# onapp_vnc_proxy  This script manages OnApp VNC Proxy
#
# chkconfig:       - 87 13
# description:     OnApp VNC Proxy provides connection \
# to Virtual Machines' VNC servers

# Source onapp functions
. /onapp/interface/script/init/onapp_functions.sh
. /onapp/interface/script/init/onapp_vnc_proxy.sh

usage(){
    generic_usage
}

start(){
    start_vnc_proxy
}

stop(){
    stop_vnc_proxy
}

restart(){
    stop
    sleep $SLEEP && start
}

status(){
    generic_status vnc_proxy
}

case "$1" in
  status)
        status
        ;;
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  *)
        usage
        ;;
esac
