#!/bin/bash

PROGRAM=/usr/sbin/thinkfan
DESC="Fan cooling control daemon"
ARGS=-q
RUNLEVEL=3

. /etc/init.d/smgl_init

required_executable $PROGRAM

start()
{
  echo "Starting $DESC: $NAME"
  loadproc $PROGRAM
  evaluate_retval
}

stop()
{
  echo "Stopping $DESC: $NAME "
  killproc $PROGRAM
  evaluate_retval
}

status()
{
  statusproc $PROGRAM
}

restart()
{
  #
  # If the "reload" option is implemented, move the "force-reload"
  # option to the "reload" entry above. If not, "force-reload" is
  # just the same as "restart".
  #
  echo "Restarting $DESC: $NAME"
  stop
  sleep 1
  start
}

