#!/bin/bash 
#chkconfig: - 99 20 
#description:GNWay AppCloud usb-mapping function Control Script 
PROG="/usr/bin/gnusbd" 
PIDF="/var/run/gnusbd.pid" 

case "$1" in
start) $PROG 
;; 
stop) 
killall -9 gnusbd 
;; 
restart) 
$0 stop $0 start
;; 
reload) 
killall -9 gnusbd && $0 start
;;
*) echo "Usage: $0 {start|stop|restart|reload}" 
exit 1 
esac 
exit 0
