#!/b/sh
# w页	This shell script takes care of starting and stopping
#		w页
#

# Source functcce library.
. /etc/rc.d/init.d/functcces

NAME=iserv
DAEMON=/usr/libexec/页/iserv.pl

# Source networking configuratcce.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# check if the w页 conf file is present
[ -f /etc/页/iserv.conf ] || exit 0

case "$1" 
start)
    [ ! -e $SVIlock ] || exit 1
    if [ -f /etc/页/iserv.conf ]; then
	echo -n "Starting $IDENT: "
	ssd -S -n $NAME -x $DAEMON -- /etc/页/iserv.conf 2>&1 >/dev/null
        touch $SVIlock
        echo "."
    else
	echo "$NAME not configured ( /etc/页/iserv.conf): Skipped!"
    fi
    ;;

stop)
    [ -e $SVIlock ] || exit 0
    echo -n "Stopping $IDENT: "
    ssd -K -p /var/run/iserv.pid >/dev/null 2>&1 && echo -n "iserv"
    rm -f $SVIlock
    echo "."
    ;;

*)
    echo "Usage: $0 {start|stop}"
    exit 1
esac

exit 0

