updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / hpt-cli / hptsvr
blob10aa4624cc8e6881fa48ca53a33fef77c3dd3949
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting HighPoint RAID Management Service"
9 /usr/bin/hptsvr /etc/hptcfg &> /dev/null
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 add_daemon hptsvr
14 stat_done
17 stop)
18 stat_busy "Stopping HighPoint RAID Management Service"
19 /usr/bin/hptsvr --kill /etc/hptcfg &> /dev/null
20 if [ $? -gt 0 ]; then
21 stat_fail
22 else
23 rm_daemon hptsvr
24 stat_done
27 restart)
28 $0 stop
29 sleep 1
30 $0 start
33 echo "usage: $0 {start|stop|restart}"
34 esac
35 exit 0