#!/bin/sh
#
# /etc/rc.d/upsd: start/stop ups daemons
#

case "$1" in
	start)
		/usr/bin/upsdrvctl start
		/usr/sbin/upsd 
	;;
	stop)
  		/usr/sbin/upsd -c stop
	;;
	restart) 
		$0 stop
		sleep 1
		$0 start
	;;  
	*)
        echo "Usage: $0 [start|stop]"
        exit 1
esac

# End of file
