contrib/nut/upsd
2008-05-22 23:58:30 +02:00

20 lines
241 B
Bash

#!/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
;;
*)
echo "Usage: $0 [start|stop]"
exit 1
esac
# End of file