#!/bin/bash
#
# onapp-ssh-agernt This script manages SSH Agent
#
# chkconfig:       - 88 12
# description:     SSH Agent provides authentication \
# for all ssh connections
# Source onapp functions
. /onapp/interface/script/init/onapp_functions.sh
. /onapp/interface/script/init/onapp_ssh_agent.sh

usage(){
    generic_usage
}

start(){
    start_ssh_agent
}

stop(){
    stop_ssh_agent
}

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

status(){
    generic_status ssh_agent
}

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