#!/bin/bash
#/etc/rc.d/init.d/GBLSWS

# Source function library.
. /etc/init.d/functions


start() {
        echo -n "Starting GBLSWS... "
        /usr/local/lsws/admin/misc/lswsup &
        return 0
}

stop() {
        echo -n "Shutting down GBLSWS... "
        pkill -9 lswsup
        return 0
}

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        ;;
    restart)
        stop
        start
        ;;
    reload)
        ;;
    *)
        echo "Usage: GBLSWS {start|stop|status|reload|restart}"
 exit 1
        ;;
esac
exit $?
