#!/bin/bash

# ucsc-smartsuite init file for snmpd
#
# description: Self Monitoring and Reporting Technology (SMART) Daemon
#
# processname: smartd 
# chkconfig: - 45 45


# source function library
. /etc/rc.d/init.d/functions

case "$1" in
  start)
	echo -n "Starting smartd: "
        daemon /usr/sbin/smartd
	touch /var/lock/subsys/smartd
	echo
	;;
  stop)
	echo -n "Shutting down smartd: "
	killproc smartd
	rm -f /var/lock/subsys/smartd
	echo
	;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status smartd
        ;;
  *)
	echo "Usage: smartd {start|stop|restart|status}"
	exit 1
esac

exit 0
