#!/bin/sh

# Stops any installed Zeus programs

# calculate ZEUSHOME and export
cd `dirname $0`
ZEUSHOME=`pwd`
export ZEUSHOME

STATUS=0

for i in rc.d/S*
do
    if [ ! -f $i ]; then continue; fi
    $i stop
    if [ $? != 0 ]; then
       STATUS=1
    fi
done

exit $STATUS
