blob: 815d631bfd6ab59df2fe6e37a2ce80931de35555 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/upsd: start/stop ups daemon
4 #
5
6 case "$1" in
7 start)
8 /usr/bin/upsdrvctl start
9 /usr/sbin/upsd
10 ;;
11 stop)
12 /usr/sbin/upsd -c stop
13 ;;
14 restart)
15 $0 stop
16 sleep 1
17 $0 start
18 ;;
19 *)
20 echo "Usage: $0 [start|stop|restart]"
21 exit 1
22 esac
23
24 # End of file
|