#!/bin/sh
# the template file of init.d script
# start or stop services

############
# CHANGELOG
#===========
# 2010/12/02    Creation	Thanh lam NGUYEN
################


. /etc/init.d/rc.config

bin=
pidfile=
lockfile=
args=

start()
{
    local RET=0

    updateCurrentConfig
    return $RET
}

stop()
{
    local RET=0
    return $RET
}

condrestart()
{
    local RET=0
    return $RET
}

restart()
{
    local RET=0

    stop
    start
    RET=$?
    return $RET
}


param=$1
shift
case "$param" in
    start|"") : "$param"
        start "$@"
        RETVAL=$?
    ;;
    stop) : "$param"
        stop "$@"
        RETVAL=$?
    ;;
    restart) : "$param"
        restart "$@"
        RETVAL=$?
    ;;
    condrestart) : "$param"
        condrestart "$@"
        RETVAL=$?
    ;;
    *) : "$param"
        echo "Usage $0 {start|stop|restart|condrestart}" >&2
        RETVAL=1
    ;;
esac
exit $RETVAL
