#! /bin/bash
# Copyright (c) 1996-2015 Optrix
# All rights reserved.
#
# Author: Bob Bobson, 2012
#
# /etc/init.d/$SERVICENAME$
#
### BEGIN INIT INFO
# Provides: testdaemon
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Short-Description: ARDI $DRIVER$ Driver
# Description:    Allows ARDI to access $DRIVER$ information
### END INIT INFO


case "$1" in
  start)
    echo "Starting server"
    # Start the daemon
    $FULLPATH$ start
    ;;
  stop)
    echo "Stopping server"
    # Stop the daemon
    $FULLPATH$ stop
    ;;
  restart)
    echo "Restarting server"
    $FULLPATH$ restart
    ;;
  *)
    # Refuse to do other stuff
    echo "Usage: /etc/init/$SERVICENAME$ {start|stop|restart}"
    exit 1
    ;;
esac

exit 0