#!/bin/bash # Syn-3 service stopper # Use this to stop a service the Right Way (TM) SERVICE=$1 echo -n "Stopping $SERVICE ..." if [ -x $SERVICE/stop ] ; then #use the supplied stop script $SERVICE/stop ERR=$? else #use svcdownchk svcdownchk $SERVICE ERR=$? fi if [ $ERR != 0 ]; then echo "ERROR!"; else echo "OK"; fi exit $ERR