#!/bin/sh
# description: internet super server

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

# path to binary
ROOT="/usr/sbin"
# name of binary to run
APP="inetd"
#runtime options
OPT=""
#server name
SERVER="Internet super server"

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

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

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

        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/
