#!/bin/sh

INIT=/etc/rc.d/init.d/$1

if [ -z "$1" ] ; then
        echo "use: stop subsystem"
        exit -1
fi

if [ ! -f $INIT ] ; then
        INIT=$INIT'.init'
        if [ ! -f $INIT ] ; then
                echo "stop: $1: not found"
                exit -1
        fi
fi

exec $INIT stop






