#!/bin/sh
# description: runs vleasytables firewall
#
# (c) 2004, Eko M. Budi, for Vector Linux
# Released under GNU GPL

# Include the functions declared in the /etc/rc.d/functions file
source /etc/rc.d/functions

# path to binary
ROOT="/etc/rc.d/"
# name of binary to run
APP="rc.firewall"
#runtime options
OPT=""
#server name
SERVER="Firewall"

case "$1" in
        start)
                echon "Starting $SERVER..............."
                sh $ROOT/$APP $OPT start
                ;;

        stop)
                echon "Stopping $SERVER.............."
                sh $ROOT/$APP stop
                ;;

        reload)
                echon "Reloading $SERVER............"
                sh $ROOT/$APP restart
                ;;

        restart)
                $0 stop
                /bin/sleep 1
                $0 start
                ;;

        status)
                statusproc $APP
                ;;

        *)
                echo "Usage: $0 {start|stop|reload|restart|status}"
                exit 1
        ;;

esac

# End /etc/init.d/