#!/bin/bash
### BEGIN INIT INFO
# Provides:          hct-start
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: My Service
# Description:       Enable service provided by My Service.
### END INIT INFO

# Add your start and stop commands here

case "$1" in
  start)
	  FILE=/opt/hygon/hct/hct/script/hctconfig
	  if test -f "$FILE"; then
		  /opt/hygon/hct/hct/script/hctconfig start
	  else
		  echo "$FILE does not exist"
	  fi
    ;;
  stop)
    # Stop the service
    ;;
  restart)
    # Restart the service
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    ;;
esac

exit 0

